dict views implementation

Christian Heimes lists at cheimes.de
Fri Aug 22 14:00:32 EDT 2008


bearophileHUGS at lycos.com wrote:
> Where can I find an explanation of how the new light dict views of
> Python 3 are implemented (or what's the name of the C source file to
> look inside for their implementation)?

The views are implemented next to the dict object. Grepping for 
PyTypeObject in
http://svn.python.org/projects/python/branches/py3k/Objects/dictobject.c 
will show you the types and constructors.

Christian




More information about the Python-list mailing list