Josh Rosenberg <shadowranger+pyt...@gmail.com> added the comment:

"than" is correct; "giving up" in this context would mean "not even trying to 
allocate the memory and just preemptively raising OverflowError, like 
non-integer numeric types with limited ranges". Rather than giving up that way, 
it chooses to try to allocate the huge integer and raises a MemoryError only if 
that fails.

----------
nosy: +josh.r

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

Reply via email to