Search code examples
What is `operator.__inv__` existing for?...

pythonbitwise-operatorsoperator-keywordpython-datamodel

Read More
Why doesn't str() use __getattribute__ to get __str__ and how to produce the effect?...

pythonpython-3.xgetattributepython-datamodel

Read More
Proper use of __format__...

pythonstringclassformatpython-datamodel

Read More
What offers better performance for large datasets? Nested dictionaries or a dictionary of objects?...

pythondictionarypython-datamodel

Read More
Example of a custom deleter method...

pythonpython-datamodel

Read More
What is the relationship between the Python data model and built-in functions?...

pythonpython-datamodel

Read More
When the Python __call__ method gets extra first argument?...

python-3.xpython-datamodel

Read More
From a python dictionary how do I save the key and value to a *.txt file...

pythonpython-3.xdata-sciencepython-datamodel

Read More
Python Reflection and Type Conversion...

pythonreflectiontype-conversionintrospectionpython-datamodel

Read More
Is there any way to tell if a function object was a lambda or a def?...

pythonlambdapython-datamodel

Read More
When can dict_values views be set-like (and why)?...

pythondictionarysetpython-datamodel

Read More
Fast data structure in Python for indexing a bunch of images as duplicates...

data-structuresduplicatespython-datamodel

Read More
How to implement the __getitem__ dunder method in python to get attribute values?...

pythonmethodsgetattributespython-datamodel

Read More
Python - class __hash__ method and set...

pythonpython-3.xhashsetpython-datamodel

Read More
Schrödinger's variable: the __class__ cell magically appears if you're checking for its...

pythonpython-3.xclosurespython-datamodel

Read More
What data model methods implement argument keyword unpacking?...

pythonargument-unpackingpython-datamodel

Read More
python attribute lookup without any descriptor magic?...

pythonpython-datamodeldescriptor

Read More
Is definition order available in a module namespace?...

pythonpython-modulepython-3.6python-datamodel

Read More
Getting object's parent namespace in python?...

pythonpython-datamodel

Read More
Python Data Model Document : an unbound user-defined method object and a class method object...

pythonoopobjectmethodspython-datamodel

Read More
Why is the __init__ method of Counter referred to as a descriptor?...

pythonpython-3.xpython-datamodel

Read More
Proper return value for __len__ for an object that acts as an infinite sequence...

pythoninfinitepython-datamodel

Read More
How to make Python 2's __getitem__ work on a class?...

pythonmagic-methodspython-datamodelfirst-class

Read More
How to get parent classes of class in my meta class?...

inheritancepython-3.xmetaprogrammingmetaclasspython-datamodel

Read More
Remove elements as you traverse a list in Python...

pythonlistloopsiteratorpython-datamodel

Read More
How can I get the file name of the function that is passed to my decorator in python?...

pythonmetaclasspython-datamodel

Read More
Python: Original 'object' class is redefined. How to get the 'object' class back?...

pythonmetaclasspython-datamodel

Read More
Python Data Model : confused again with classmethod...

pythonpython-datamodel

Read More
Python std methods hierarchy calls documented?...

pythonpython-datamodel

Read More
What does this Python code mean?...

pythonpython-datamodel

Read More
BackNext