Feature or enhancement
Proposal:
In _PyLong_Negate there is a fast path for unique referenced longs. The slow path assumes the argument is a small int. We can add an assert for this condition, and remove the final decref (small ints are immortal).
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Linked PRs