看这个Python文档的这部分: https://docs.python.org/3/library/stdtypes.html#typeiter
里面关于迭代器类型,有几个地方提到了slot这个东西:
1.This method corresponds to the tp_iter slot of the type structure for Python objects in the Python/C API.
2.This method corresponds to the tp_iter slot of the type structure for Python objects in the Python/C API.
3.This method corresponds to the tp_iternext slot of the type structure for Python objects in the Python/C API.
就是每个方法讲完,最后都有这么一句。那么这些句子怎么理解,特别是slot是什么东西!求解释或相关资料。
谷歌之后也没找到答案。