Message176771
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? |
|
Date |
User |
Action |
Args |
2012-12-02 06:59:25 | christian.heimes | set | recipients:
+ christian.heimes, pitrou, python-dev |
2012-12-02 06:59:25 | christian.heimes | set | messageid: <1354431565.72.0.614787791808.issue16592@psf.upfronthosting.co.za> |
2012-12-02 06:59:25 | christian.heimes | link | issue16592 messages |
2012-12-02 06:59:25 | christian.heimes | create | |
|