Python3 __slots__

  • 基础:
    python slots 详解(上篇)

  • 进阶:
    Python__slots__详解

__slots__ v.s. __dict__

  • python documentation: 3.3.2.3. __slots__

  • object.__dict__ A dictionary or other mapping object used to store an object’s (writable) attributes.

你可能感兴趣的:(Python3 __slots__)