Serhiy Storchaka added the comment:

And yet one nitpick. For int subclasses which doesn't overload the __int__ 
method the patch calls default int.__int__ which creates a copy of int object. 
This is redundant in PyLong_As* functions because they only extract C int value 
and drop Python int object. So we can use int subclass object itself as good as 
int object.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17576>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to