You're viewing a single thread.
View all comments
52
comments
Python is just a pile of dicts/hashtables under the hood. Even the basic
int
type is actually a dict of method names:x = 1 print(dir(x)) ['__abs__', '__add__', '__and__', '__bool__', '__ceil__', '__class__', '__delattr__', '__dir__', ... ]
PS: I will never get away from the fact that user-space memory addresses are also basically keys into the page table, so it is hashtables all the way down - you cannot escape them.
16 0 Replyaudible C++ programmer disgust
5 0 Replyjs is similar, though it does not include python's precalculated numbers
calculates integers from -5 to 256, see:> a = 100 > b = 100 > c = 1000 > d = 1000 > a is b True > c is d False
3 0 Reply
You've viewed 52 comments.
Scroll to top