Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in python-internals

Why is str.strip() so much faster than str.strip(' ')?

What does "del" do exactly?

Why is float() faster than int()?

Why is repr(int) faster than str(int)?

Why is True returned when checking if an empty string is in another?

Understanding memory allocation for large integers in Python

Tuple or list when using 'in' in an 'if' clause?

Why is list(x for x in a) faster for a=[0] than for a=[]?

How big can the input to the input() function be?

Why does list ask about __len__?

What is under the hood of x = 'y' 'z' in Python?

Is there a difference between [] and list() when using id()?

Are list comprehensions syntactic sugar for `list(generator expression)` in Python 3?

Why are reversed and sorted of different types in Python?

Is there anything faster than dict()?

Why were literal formatted strings (f-strings) so slow in Python 3.6 alpha? (now fixed in 3.6 stable)

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

Meaning of unittest.main() in Python unittest module

Why are dict lookups always better than list lookups?

Python eval: is it still dangerous if I disable builtins and attribute access?