[docs] [issue34601] Typo: "which would rather raise MemoryError than give up", than or then?
Josh Rosenberg
report at bugs.python.org
Fri Sep 7 10:32:23 EDT 2018
Josh Rosenberg <shadowranger+python at 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 <report at bugs.python.org>
<https://bugs.python.org/issue34601>
_______________________________________
More information about the docs
mailing list