Search code examples
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
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
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
Why doesn't Python have a "__req__" (reflected equality) method?...

pythonnumpypython-internalspython-datamodel

Read More
Two integers in Python have same id, but not lists or tuples...

pythonpython-3.xtuplesidentitypython-internals

Read More
Why is 'x' in ('x',) faster than 'x' == 'x'?...

pythonperformancepython-3.xpython-internals

Read More
What cool hacks can be done using sys.settrace?...

pythonsyspython-internals

Read More
Usage of __slots__?...

pythonooppython-internalsslots

Read More
Why does my Python thread block the main thread unless I add a print or a sleep?...

pythonmultithreadingpython-multithreadingpython-internals

Read More
Why does Python recursion limit change depending on function?...

pythonrecursionpython-internals

Read More
Python Tuple vs List vs Array memory consumption...

pythonarrayslisttuplespython-internals

Read More
Are Python 3.11 objects as light as slots?...

pythonpython-internalsslotspython-3.11

Read More
Python __class__()...

pythonpython-3.xtypespython-internalsobject-model

Read More
The __getattribute__ method and descriptors...

pythonattributespython-internals

Read More
When is del useful in Python?...

pythondictionarypython-internalsdel

Read More
Why is "1000000000000000 in range(1000000000000001)" so fast in Python 3?...

pythonperformancepython-3.xrangepython-internals

Read More
Where is the "from __future__ import braces" code?...

pythonpython-2.7python-internals

Read More
Why is set.remove so slow here?...

pythonperformancesetpython-internals

Read More
What does "del" do exactly?...

pythonmemorypython-internals

Read More
BackNext