mirror of
https://github.com/python/cpython.git
synced 2026-05-19 19:03:25 -04:00
cb61e5d9b5
long for a class whose __long__ method returns a plain int. This fixes an interpreter crash (due to long_subtype_new assuming PyNumber_Long returns a long) when initializing an instance of a long subclass from an object whose __long__ method returns a plain int.