Search code examples
What is the purpose of the __repr__ method?...


pythonmagic-methodsrepr

Read More
Understanding __getitem__ method in Python...


pythondictionaryclassoopmagic-methods

Read More
Should I use Python magic methods directly?...


pythonmagic-methods

Read More
Should I use Methods or Operators on Python Data Types?...


pythonmagic-methods

Read More
What is the difference between __str__ and __repr__?...


pythonmagic-methodsrepr

Read More
How to write a static python getitem method?...


pythonoperator-keywordmagic-methods

Read More
Python __index__ special method...


pythonmagic-methods

Read More
Making a python user-defined class sortable, hashable...


pythonclasssortinghashmagic-methods

Read More
Can I change the default __add__ method in Python?...


pythonmagic-methods

Read More
Where is the Python documentation for the special methods? (__init__, __new__, __len__, ...)...


pythonclassmagic-methods

Read More
use __getattr__ within the same module or console...


pythonmagic-methodsgetattr

Read More
How to await inside a dunder method?...


pythonasync-awaitmagic-methods

Read More
How to type hint python magic __get__ method...


pythonpython-typingmagic-methodspython-descriptors

Read More
Python 3.10 - How to properly type hint __add__ in a dataclass that inherits Generic[TypeVar]?...


pythonpython-typingmagic-methods

Read More
Python's Magic Method for representation of class?...


pythonmagic-methods

Read More
Practical applications of PHP magic methods - __get, __set, and __call...


phpmagic-methods

Read More
The cost of rewrite __setattr__ () was too high...


pythonpython-3.xperformancemagic-methods

Read More
Why isn't my class initialized by "def __int__" or "def _init_"? Why do I ge...


pythonclassinitializationtypeerrormagic-methods

Read More
Which Python dunder/magic methods do you need to implement to correctly proxy an object?...


pythonpython-3.xmagic-methodspython-datamodelproxy-object

Read More
get true `__dict__` if `__dict__` was overridden...


pythonctypesmagic-methods

Read More
How to change connected class objects...


pythonclassobjectattributesmagic-methods

Read More
Weird Behavior of __new__...


pythonpython-3.xmagic-methods

Read More
Sequelize magic method not found using Express and Node.JS...


node.jsexpresssequelize.jsmagic-methods

Read More
Custom double star operator for a class?...


pythonclasspython-3.xmagic-methods

Read More
Python overload __setitem__ does not replace self out of the class range...


pythonoverloadingmagic-methodspython-class

Read More
PHP - __call all the time...


phpmethodscallmagic-methods

Read More
Using parent class `__new__` or `__init__` method to assign default attributes for every object/inst...


pythonclassoopinheritancemagic-methods

Read More
Simple example of use of __setstate__ and __getstate__...


pythonserializationpicklemagic-methods

Read More
Use another class' methods without decorators and inheritance...


pythonoopmagic-methodsgetattr

Read More
Assigning (instead of defining) a __getitem__ magic method breaks indexing...


pythonclassindexingwrappermagic-methods

Read More
BackNext