我正在研究python正则表达式(re.py)源代码。
在re.py他们导入的模块中sre_compile:
import sre_compile
我查看了模块 sre_compile 他们_sre 在第 13 行导入了模块
import _sre, sys
我搜索了该模块_sre.py,但在任何地方都找不到它,我什至试图在我的外壳中
找到它。_sre.py
最后我尝试用python解释器找到它。我导入_sre了,我试图寻找的__file__属性,_sre但它给了我以下错误:
AttributeError: 'module' object has no attribute '__file__'
在哪里可以找到_sre模块源代码?