But nobody would use eq in lisp for this.
For numbers you would use equal, comparing the values.
You only would use eq for addresses, like cons cells or vectors.
E.g. in php there is == vs ===.
re python: this is of course superlame. the compiler can easily detect "is <int>" and forbid the const int table optimization. Only "is None" would make sense.
re python: this is of course superlame. the compiler can easily detect "is <int>" and forbid the const int table optimization. Only "is None" would make sense.