[Python-Dev] Accessing globals without dict lookup

Fred L. Drake, Jr. fdrake@acm.org
Fri, 8 Feb 2002 16:17:28 -0500


Guido van Rossum writes:
 > I'm guessing both. ;-)
...
 > Wrong. keys() *does* need special treatment. If c.objptr is NULL,
 > the cell exists, but keys() should not return the corresponding key.
 > This is so that len(x.keys()) == len(x.values()), amongst other
 > reasons!
Ow! Bad Fred! I should know better than to speak up on a Friday!
 -Fred
-- 
Fred L. Drake, Jr. <fdrake at acm.org>
PythonLabs at Zope Corporation

AltStyle によって変換されたページ (->オリジナル) /