A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-February/019860.html below:

[Python-Dev] Accessing globals without dict lookup

[Python-Dev] Accessing globals without dict lookup [Python-Dev] Accessing globals without dict lookupFred L. Drake, Jr. fdrake@acm.org
Fri, 8 Feb 2002 15:50:03 -0500
Guido van Rossum writes:
 >     def keys(self):
 >         return [c.objptr for c in self.__dict.keys() if c.objptr is not NULL]

I presume you meant values() here rather than keys()?  The keys()
method could simply delegate to self.__dict.  I imagine most of us can
fill in any additional dictionary methods, though.


  -Fred

-- 
Fred L. Drake, Jr.  <fdrake at acm.org>
PythonLabs at Zope Corporation



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4