Python - data structures

Data model

Special methods

Also known as magic methods, usually written with leading and tailing double under scores. Implement when we want our objects to support and interact with fundamental language constructs such as:

  • Collections
  • Attribute access
  • Iteration

results matching ""

    No results matching ""