Python language suggestion
Rainer Deyke
root at rainerdeyke.com
Sat Jan 13 19:02:46 EST 2001
"Chris Ryland" <cpr at emsoftware.com> wrote in message
news:mailman.979428692.14432.python-list at python.org...
> Why doesn't the attribute reference (primary "." identifier) work for any
> dictionary-like object?
import UserDict
d = UserDict.__dict__
print d.keys, d['keys']
--
Rainer Deyke (root at rainerdeyke.com)
Shareware computer games - http://rainerdeyke.com
"In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor
More information about the Python-list
mailing list