• rain_worl@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    3 hours ago

    js 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