Mystery of Python
Skip Montanaro
skip at mojam.com
Wed Feb 9 11:00:54 EST 2000
More information about the Python-list mailing list
Wed Feb 9 11:00:54 EST 2000
- Previous message (by thread): telnet functions
- Next message (by thread): Mystery of Python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
The variable char isn't interned, while the string literal "i" is. Try:
for char in "abcdefghijklmnopqrstuvwxyz":
print char, sys.getrefcount(intern(char))
Skip Montanaro | http://www.mojam.com/
skip at mojam.com | http://www.musi-cal.com/
"Languages that change by catering to the tastes of non-users tend not to do
so well." - Doug Landauer
- Previous message (by thread): telnet functions
- Next message (by thread): Mystery of Python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list