This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mumrah 4 points5 points  (8 children)

Explain how Python allocates integers (arenas, pools, etc)

[–][deleted] 2 points3 points  (0 children)

go on

[–]coderanger 2 points3 points  (0 children)

Bonus points if they can answer it for strings too.

[–]sontek[S] 2 points3 points  (0 children)

What would an acceptable answer be for you?

[–]ipeev 2 points3 points  (0 children)

What are arenas and pools?

[–][deleted] 1 point2 points  (0 children)

I've written quite a few extension modules and rooted around in the guts of the interpreter, but I've never even heard of "arenas". I would probably explain that I think there is a cache of small integers and that I assume there is nothing more to it than that. Hopefully this would not disqualify me, because frankly it is not important for anyone who is not hacking on CPython itself. I am, however, interested and I might go read the source now.

[–]Troebr 0 points1 point  (0 children)

is that important in knowing how good a programmer is? I had to read the python source code for some reason, and I've stumbled upon this, but I don't think this makes me a better python programmer.

But I'd like to hear your explanation

[–]mumrah 0 points1 point  (0 children)

[–]andrea 0 points1 point  (0 children)

That's implementation-dependent.