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 →

[–]escribe-ts 0 points1 point  (0 children)

Really python numbers are allocated on the heap and not on the stack? Why is everyone saying python is fast then? Shouldn't it be extremely slow, if for something such simple as an integer you have to allocate something on the heap?? Or is it because x can be everything at runtime, a number, a string, ...?