Where is the source code for the python 'dict' type?

自古美人都是妖i 提交于 2019-12-23 07:20:09

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!