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-January/019484.html below:

[Python-Dev] Suggested changes to PEP 215

[Python-Dev] Suggested changes to PEP 215 [Python-Dev] Suggested changes to PEP 215Jason Orendorff jason@jorendorff.com
Mon, 14 Jan 2002 21:36:57 -0600
Paul Prescod wrote:
> Jason Orendorff wrote:
> > ...
> > It should be specified that $-strings do not use the local
> > "str" and "unicode" names to find str() and unicode(); nor
> > do they look in the current __builtins__ or the __builtin__
> > module.  They should use the actual python C implementations
> > of str() and unicode(). 
> 
> Why? Wouldn't it be better to look in __builtin__? If someone overrides
> str() or unicode() they may well want that behaviour to be respected in
> interopolations.

I was thinking it should parallel what the other similar
features already do:

>>> import __builtin__
>>> __builtin__.str = 'a suffusion of yellow'
>>> str
'a suffusion of yellow'
>>> print 32
32
>>> print "xyz %s 123" % 4.5
xyz 4.5 123
>>>

## Jason Orendorff    http://www.jorendorff.com/



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