Search code examples
Making an object x such that `x in [x]` returns False...


pythonpython-internals

Read More
When are .pyc files refreshed?...


pythonpython-internalspyc

Read More
What is the internal implementation of `copy.deepcopy()` in Python and how to override `__deepcopy__...


pythondeep-copypython-internalsinternals

Read More
What does the following code do in cpython?...


pythonpython-3.xcpythonpython-internals

Read More
Storage of floating point numbers in memory in Python...


pythonpython-internals

Read More
How are small sets stored in memory?...


pythonmemorysetcpythonpython-internals

Read More
Why does '() is ()' return True when '[] is []' and '{} is {}' return False?...


pythontuplesidentitypython-internals

Read More
CPython memory allocation...


pythonmemory-managementcpythonpython-internals

Read More
Finding the source code for built-in Python functions?...


pythonpython-internals

Read More
Why list comprehensions create a function internally?...


pythonlist-comprehensioncpythonpython-internalsdis

Read More
Where did sys.modules go?...


pythonpython-internalspython-3.12

Read More
How to modify the signature of a function dynamically...


python-3.xargumentsabstract-syntax-treepython-internals

Read More
Python string literal concatenation...


pythonstringpython-2.7python-internals

Read More
Why is `if x is None: pass` faster than `x is None` alone?...


pythonperformancecpythonmicro-optimizationpython-internals

Read More
List lookup faster than tuple?...


pythonperformancelisttuplespython-internals

Read More
Accessing class variables from a list comprehension in the class definition...


pythonpython-3.xscopelist-comprehensionpython-internals

Read More
What algorithm does Python's built-in sort() method use?...


pythonalgorithmsortingpython-internals

Read More
How does the Python for loop actually work?...


pythonfor-looppython-internals

Read More
Why is a set object stored as a frozenset and a list object as a tuple?...


pythonlistsetpython-internals

Read More
How to reliably separate decimal and floating parts from a number?...


pythonfloating-pointieee-754python-internals

Read More
What is the term for a colon before a suite in Python syntax?...


pythonsyntaxnaming-conventionspython-internals

Read More
How does Python determines the order of elements in sets?...


pythonsetpython-internals

Read More
Why is the simpler loop slower?...


pythonperformancecpythonpython-internalspython-3.11

Read More
What is the `ExceptionTable` in the output of `dis`?...


pythonpython-3.xcpythonpython-internals

Read More
Class property with space in it...


pythonpython-3.xpython-internals

Read More
Why does inspect.getsource throw TypeError when trying to get source for Python Built-in?...


pythonpython-3.xpython-internals

Read More
How does the @property decorator work in Python?...


pythonpropertiesdecoratorpython-decoratorspython-internals

Read More
Finding the source code of methods implemented in C?...


python-3.xcpythonpython-internals

Read More
Why the bytecode is different for string multiplication?...


pythonpython-3.xcompiler-optimizationcpythonpython-internals

Read More
Which calls in Python may not call `__call__`?...


pythonprotocolspython-internalscallable-object

Read More
BackNext