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/2001-September/017488.html below:

[Python-Dev] interning string subclasses

[Python-Dev] interning string subclasses [Python-Dev] interning string subclassesGuido van Rossum guido@python.org
Tue, 11 Sep 2001 22:38:14 -0400
> Question:  Should we complain if someone tries to intern an instance of
> a string subclass?  I hate to slow any code on those paths.

I think in this case intern(s) should return intern(str(s)).  The fast
path checks ob_sinterned first, and that should always point to a real
string for a string subclass.

--Guido van Rossum (home page: http://www.python.org/~guido/)



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