[issue16592] stringlib_bytes_join doesn't raise MemoryError on allocation failure
Christian Heimes
report at bugs.python.org
Sun Dec 2 07:59:25 CET 2012
Christian Heimes added the comment:
Antoine, on Unix you can restrict the address space of a program to test the issue without almost crashing and OOMing your box. ;)
>>> import resource
>>> resource.setrlimit(resource.RLIMIT_AS, (1024*1024*100, 1024*1024*100))
>>> l = [b''] * (100*1024*70)
>>> d = b''.join(l)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
MemoryError
I wonder why I don't see a memory error in Python 3.3 or earlier. Any idea?
----------
nosy: +christian.heimes
resolution: -> fixed
status: open -> pending
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16592>
_______________________________________
More information about the Python-bugs-list
mailing list