Search code examples
Why doesn't Python optimize away temporary variables?...

pythonoptimizationrefactoringpython-internals

Read More
What's the difference here between the source codes of Python3.5 and Python3.6?...

pythoncpython-3.xpython-internals

Read More
How __future__ imports work under the hood...

pythonpython-2.7importpython-internalscompiler-directives

Read More
When python creates new objects in memory...

pythonvariable-assignmentpython-internals

Read More
Why is a trailing comma a SyntaxError in an argument list that uses *args syntax?...

pythonsyntaxpython-internals

Read More
Why is sys.path a list?...

pythonpython-internals

Read More
Why are reversed and sorted of different types in Python?...

pythontypespython-internals

Read More
if there is an end for the command `dir(' '.__dir__.__dir__.__dir__.__dir__)` to stop printi...

pythonpython-internals

Read More
Python: equality for Nan in a list?...

pythoncpythonpython-internals

Read More
Difference between a loaded module and an initialized module?...

pythonpython-3.xmodulepython-internals

Read More
Why does Python2.7 dict use more space than Python3 dict?...

pythonpython-2.7python-3.xdictionarypython-internals

Read More
How does this internal Python optimization work for mathematical expressions?...

pythonoptimizationpython-internals

Read More
Python list initialization with values--implementation process?...

pythonlistconstructorpython-internals

Read More
Why is deque implemented as a linked list instead of a circular array?...

pythonpython-3.xcpythonpython-internals

Read More
Why is range(0) == range(2, 2, 2) True in Python 3?...

pythonpython-3.xrangeidentitypython-internals

Read More
Python bytecode function call passing self...

pythonpython-internals

Read More
Why is __debug__ not in the keywords list when it's a keyword?...

pythonkeywordpython-internals

Read More
How does str(list) work?...

pythonstringlistevalpython-internals

Read More
Python 2.7: What does object.__setattr__ do under the hood?...

pythonpython-2.7classattributespython-internals

Read More
RuntimeError: lost sys.stdout...

pythonpython-3.xcpythonpython-internals

Read More
Are both `import` statement and `builtin.__import__()` function implemented based on `importlib.__im...

pythonpython-3.xpython-importpython-internalspython-importlib

Read More
What is the default binding to the `__import__` attribute of the module `builtin`?...

pythonpython-3.xpython-importpython-internalspython-importlib

Read More
Why does max(iterable) perform much slower than an equivalent loop?...

pythonperformancepython-3.xpython-internals

Read More
When are python objects created?...

pythonobjectgarbage-collectioncpythonpython-internals

Read More
Why does naive string concatenation become quadratic above a certain length?...

pythoncpythonpython-internals

Read More
range non-default parameter follows default one...

pythonpython-3.xpython-internals

Read More
Why does Python's CONTINUE_LOOP allow an outer loop, when BREAK_LOOP doesn't?...

pythonloopsbytecodecpythonpython-internals

Read More
Misspelled __future__ import causes error later in script, not at import location...

pythonpython-2.7syntaxpython-internals

Read More
Does Python optimize away a variable that's only used as a return value?...

pythoninterpreterpython-internals

Read More
Disassembling a generator yields surprising results...

pythonpython-2.7generatoryieldpython-internals

Read More
BackNext