A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-July/026141.html below:

Alternative implementation of string interning

[Python-Dev] Re: Alternative implementation of string interning [Python-Dev] Re: Alternative implementation of string interningKa-Ping Yee ping@zesty.ca
Wed, 3 Jul 2002 03:14:33 -0700 (PDT)
On Wed, 3 Jul 2002, Oren Tirosh wrote:
> > It appears that what you are proposing is what interned string
> > comparison already does (since == checks for pointer equality first).
>
> But INequality checking may still require strcmp.  Inverse logic again.

I never claimed it wouldn't.  All i'm saying is that string comparison
already does this: compare pointers, then if not equal, compare strings.

> > So, the only observable effect of the change would be to break all
> > code that tests for type(s) == str.
>
> Yes, that's certainly a problem.

But you haven't responded to my point.  Would there be *any* effect
other than breakage?


-- ?!ng





RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4