Search code examples
Python 2 assumes different source code encodings...


pythoncharacter-encodingpython-2.xpython-internals

Read More
What is the global interpreter lock (GIL) in CPython?...


pythonpython-internalsgil

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


pythonpropertiesdecoratorpython-decoratorspython-internals

Read More
How can I store ids in Python without paying the 28-byte-per-int price?...


pythonmemorydata-structuresspace-complexitypython-internals

Read More
How is variable assignment implemented in CPython?...


pythoncpython-3.xcpythonpython-internals

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


pythonpython-3.xscopelist-comprehensionpython-internals

Read More
Why can tuples contain mutable items?...


pythonlisttuplesimmutabilitypython-internals

Read More
Accessing the list while being sorted...


pythonlistsortingpython-internals

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


pythonalgorithmsortingpython-internals

Read More
Performance impact of inheriting from many classes...


pythonperformancepython-internals

Read More
How/why are {2,3,10} and {x,3,10} with x=2 ordered differently?...


pythoncpythonpython-internals

Read More
Why is bytes(lst) slower than bytearray(lst)?...


pythonperformancepython-internals

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


pythonpython-3.xlist-comprehensioncpythonpython-internals

Read More
What is the difference between type.__getattribute__ and object.__getattribute__?...


pythongetattrpython-internalsmethod-resolution-order

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


pythonmemorysetcpythonpython-internals

Read More
In Python 3.12, why does 'Öl' take less memory than 'Ö'?...


pythonstringpython-internalspython-3.12

Read More
list() vs iterable unpacking in Python 3.5+...


pythonpython-3.xlistiterablepython-internals

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


python-3.xcpythonpython-internals

Read More
Python generator expression recursion...


pythonclosurespython-internalssieve-of-eratosthenesgenerator-expression

Read More
How does swapping of members in tuples (a,b)=(b,a) work internally?...


pythontuplespython-internalsiterable-unpacking

Read More
Internals for python tuples...


pythontuplespython-internals

Read More
Why is variable1 += variable2 much faster than variable1 = variable1 + variable2?...


pythonstringperformancepython-internals

Read More
What is None doing in the code object's co_consts attribute?...


pythonpython-2.7python-internals

Read More
Unexpected value from sys.getrefcount...


pythonpython-internals

Read More
Are dictionaries ordered in Python 3.6+?...


pythondictionarypython-3.6python-internals

Read More
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
BackNext