Message201578
"""
(4) str in __all__ (list of str):
os.py:
if "putenv" not in __all__:
__all__.append("putenv")
"""
For this example: "putenv" is probably interned by "def putenv(...)". "putenv" string and the name of the function are the same constant. When a function is defined, it is stored in the locals dictionary, so the key ("putenv") is interned by PyDict_SetItem().
So dict is not used explicitly, but implicitly by the namespace. |
|
Date |
User |
Action |
Args |
2013-10-28 20:47:20 | vstinner | set | recipients:
+ vstinner, rhettinger, gregory.p.smith, pitrou, christian.heimes, djc, ezio.melotti, meador.inge, serhiy.storchaka |
2013-10-28 20:47:20 | vstinner | set | messageid: <1382993240.76.0.301001187611.issue16286@psf.upfronthosting.co.za> |
2013-10-28 20:47:20 | vstinner | link | issue16286 messages |
2013-10-28 20:47:20 | vstinner | create | |
|