One Python 2.1 idea

Thomas Wouters thomas at xs4all.net
Fri Jan 12 16:18:33 EST 2001


On Wed, Jan 03, 2001 at 02:07:04AM -0500, Steve Holden wrote:

> Please tell me it at least interns the names ...

All identifiers are interned, because they are 'string literals' after a
fashion. But in the case of 'xfoo = getattr(x, "fo"+"o")', the string isn't
interned (obviously.) Not that interning matters that much, in speed.

-- 
Thomas Wouters <thomas at xs4all.net>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!




More information about the Python-list mailing list