finding _collections in python source

前端 未结 3 1957
刺人心
刺人心 2020-12-19 04:13

I wanted to have a look at the python deque class. When I checked the source code , I found the following at line 10

 from _collections import deque, default         


        
3条回答
  •  借酒劲吻你
    2020-12-19 04:29

    _collections is builtin extension module.

    You can find source for _collection module here.

    Setup.dist contains mapping between builtin extension module name to source file.

提交回复
热议问题