问题
I want to view the source code of the python dict
type but i can't find it.
I'm looking for python 2.6.
回答1:
Here is latest python2.6.6 dictobject source code from python svn
http://svn.python.org/view/checkout/python/tags/r266/Objects/dictobject.c?revision=84293&content-type=text/plain
回答2:
Now that Python migrated to Github, here is the updated link:
cpython/Objects/dictobject.c.
回答3:
Here's a more recent link with source highlighting: http://hg.python.org/cpython/file/tip/Objects/dictobject.c
回答4:
Look at Objects/dictobject.c
in the Python source code.
来源:https://stackoverflow.com/questions/5334284/where-is-the-source-code-for-the-python-dict-type