当前分类:python-internals

Python方法对象创建

python - CPython 的 str.join() 是不是效率有点低?

python - 位置参数和关键字参数的求值顺序

python - `groupby` 的实现特定行为和参数解包

python - CPython:为什么 3 行脚本在解释器中需要远超过 3 个周期才能执行?

cython - 当扩展模块被垃圾收集时运行 cython 代码

python - 如何创建正确垃圾收集的自定义生成器类

Python id 问题

python - 如何通过类访问类本身的weakref对象?

python - 为什么 __slots__ 不是 Python 中的默认值?

python - 创建slots对象实例性能

python - 当您从 Python 中的模块而不是类继承时会发生什么?

python - 使用 __hash__ 函数设置包含用户定义的类

python - print 是如何准确处理逗号的?

python - `<attribute ' xxx' of 'C' 对象 >` mean in the output of ` C.__dict__` 是什么意思?

python - 为什么在 python 中导入 kivy 时会打印信息行?

python - 当我们将函数分配给名称时,内部会发生什么?

python - 为什么当尝试获取 Python 内置源时,inspect.getsource 会抛出 TypeError ?

python - 定义 __new__ 后对象不带任何参数

python - Python的代码对象是什么类型?

热门标签: