Search code examples
What is the difference between __str__ and __repr__?...

pythonmagic-methodsrepr

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
Understanding __getitem__ method in Python...

pythondictionaryclassoopmagic-methods

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
Python __index__ special method...

pythonmagic-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
Why doesn't Python have a hybrid getattr + __getitem__ built in?...

pythonmagic-methodsgetattr

Read More
Return null by reference via __get()...

phpnullreferencemagic-methods

Read More
How to overload Python's __bool__ method in 2.x?...

pythonmethodsoverloadingpython-2.xmagic-methods

Read More
Is there any case where len(someObj) does not call someObj's __len__ function?...

pythonmagic-methods

Read More
Why does Python use 'magic methods'?...

pythonmagic-methods

Read More
PHP Dependency Injection - magic methods injections?...

dependency-injectionphpunitmagic-methodsphp-5.5

Read More
BackNext