This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients christian.heimes, djc, ezio.melotti, gregory.p.smith, meador.inge, pitrou, rhettinger, serhiy.storchaka, vstinner
Date 2013-10-28.20:47:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1382993240.76.0.301001187611.issue16286@psf.upfronthosting.co.za>
In-reply-to
Content
"""
(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.
History
Date User Action Args
2013-10-28 20:47:20vstinnersetrecipients: + vstinner, rhettinger, gregory.p.smith, pitrou, christian.heimes, djc, ezio.melotti, meador.inge, serhiy.storchaka
2013-10-28 20:47:20vstinnersetmessageid: <1382993240.76.0.301001187611.issue16286@psf.upfronthosting.co.za>
2013-10-28 20:47:20vstinnerlinkissue16286 messages
2013-10-28 20:47:20vstinnercreate