Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in python-internals

Why is code using intermediate variables faster than code without?

Why can I use the same name for iterator and sequence in a Python for loop?

Python: why are * and ** faster than / and sqrt()?

list() uses slightly more memory than list comprehension

What exactly is __weakref__ in Python?

Why is copying a shuffled list much slower?

python python-internals

Why is max slower than sort?

What's with the integer cache maintained by the interpreter?

When are .pyc files refreshed?

python python-internals pyc

Why does tuple(set([1,"a","b","c","z","f"])) == tuple(set(["a","b","c","z","f",1])) 85% of the time with hash randomization enabled?

Why is a class __dict__ a mappingproxy?

When is hash(n) == n in Python?

Python string interning

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

Why do tuples take less space in memory than lists?

Why is str.translate much faster in Python 3.5 compared to Python 3.4?

How to override the copy/deepcopy operations for a Python object?

python python-internals

About Python's built in sort() method

Why is it slower to iterate over a small string than a small list?

What causes [*a] to overallocate?