[Python-Dev] Suggested changes to PEP 215

Paul Prescod paul@prescod.net
Mon, 14 Jan 2002 18:40:33 -0800


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.

 Paul Prescod