Python objects with special methods - Create better classes



Python objects with special methods - Create better classes

Rating 4.85 out of 5 (19 ratings in Udemy)


What you'll learn
  • Explain the origin of the names Python datamodel, magic methods, dunder methods and special methods.
  • Write an indexer to support subscripting with the __getitem__ method
  • Make objects callable with __call__
  • Define the object identity
  • Apply __iter__, __next__ to make your objects iterable
  • Specify object equality with __eq__, __ne__, __lt__, __gt__, __le__, __ge__
  • Wrap existing code into context managers with __enter__ and …
Duration 1 Hours 58 Minutes
Paid

Self paced

Intermediate Level

English (US)

207

Rating 4.85 out of 5 (19 ratings in Udemy)

Go to the Course
We have partnered with providers to bring you collection of courses, When you buy through links on our site, we may earn an affiliate commission from provider.