• JATth@lemmy.world
    link
    fedilink
    arrow-up
    15
    ·
    edit-2
    2 days ago

    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__', ... ]