Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 350 Bytes

30x9-collections-userdict.md

File metadata and controls

9 lines (7 loc) · 350 Bytes

Collections.UserDict

#python #programming #language #datastructure #datamodel

  • Has the method __update__ and __get__ already implemented
  • Avoid recursion on method __setitem__ using a variable data to store the dictionary itself.
  • key in data is the implementation of the method __contains__

References

Ramalho, 2022, p97-100