Top "Python-internals" questions

How does Python work underneath the hood?

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

We all know that eval is dangerous, even if you hide dangerous functions, because you can use Python's introspection features …

python eval python-internals
Why is copying a shuffled list much slower?

Copying a shuffled range(10**6) list ten times takes me about 0.18 seconds: (these are five runs) 0.175597017661 0.173731403198 0.178601711594 0.180330912952 0.180811964451 Copying the unshuffled list ten …

python python-internals
How does Python's cmp_to_key function work?

I came across this function here. I am baffled as to how this would be implemented -- how does the …

python algorithm sorting cmp python-internals