Search code examples
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
Python, overloading magic methods, multiple usage for same magic method...


pythonpython-3.xoverridingoverloadingmagic-methods

Read More
Which special methods bypasses __getattribute__ in Python?...


pythonmagic-methods

Read More
What are the reasons for using type(obj).method() instead of obj.method()?...


pythonmethodsmagic-methods

Read More
How to change class instance?...


pythonmagic-methods

Read More
Python __call__ special method practical example...


pythonmethodscallmagic-methods

Read More
How does python numpy.where() work?...


pythonnumpymagic-methods

Read More
Use of PHP Magic Methods __sleep and __wakeup...


phpoopmagic-methods

Read More
Assigning vs. Defining Python Magic Methods...


pythonclassassignmagic-methods

Read More
How can I check if an identifier is dunder or class-private (i.e. will be mangled)?...


pythonidentifiermagic-methodsname-mangling

Read More
override numeric magic method as classmethod...


pythonmetaclassclass-methodmagic-methods

Read More
is there a magic method for sorted() in Python?...


pythonoopmagic-methods

Read More
Indirect __iadd__ method combined with __setitem__...


pythonmagic-methods

Read More
What is the name of the special method responsible for `if obj:` statement in an object class which ...


pythonif-statementmethodsmagic-methods

Read More
How can I override a special method defined in a metaclass with a custom classmethod?...


pythonoverridingmetaclassmagic-methods

Read More
Generic lazy initializer class and magic methods...


pythonmetaclasslazy-initializationmagic-methods

Read More
__new__ method giving error object.__new__() takes exactly one argument (the type to instantiate)...


pythonpython-3.xmagic-methods

Read More
On defining a setter in Python...


pythondecoratorgetter-setterpython-decoratorsmagic-methods

Read More
Calling methods surrounded by __ in Python...


pythonmethodsmagic-methods

Read More
Should I not use built-in tuple specific functions?...


pythonpython-3.xtuplesmagic-methods

Read More
Query attribute name together with its class...


pythonstringclassmagic-methodsclassname

Read More
Is there any magic method for reflected augmented assignment?...


pythonoopmethodsoperator-overloadingmagic-methods

Read More
How to override a magic method for the current script without a class?...


pythonoverridingmagic-methods

Read More
Python Multiprocessing manager prunes some methods...


pythonclassmultiprocessingmagic-methods

Read More
Can magic methods return different result type?...


pythonmagic-methods

Read More
BackNext