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 <rep...@bugs.python.org>
<http://bugs.python.org/issue16592>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to