"Jim Jewett" <[EMAIL PROTECTED]> writes:
> __getitem__ on a dictionary instance happens to be defined.
> __getitem__ on the dict class happens not to be defined.
I wouldn't be so sure.
>>> dict.__getitem__
<method '__getitem__' of 'dict' objects>
>>> dict.__getitem__({'one':1}, 'one')
1
--
__("< Marcin Kowalczyk
\__/ [EMAIL PROTECTED]
^^ http://qrnik.knm.org.pl/~qrczak/
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe:
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com