• rain_worl@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    2 months 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