Martin Panter added the comment:

bytearray(n) needs to allocate n bytes. Unless your computer has 1024 GiB of 
memory, this is not going to be possible. If you are using an OS like Linux, it 
may pretend to allocate that much memory, and then kill the process when it 
realizes it has overallocated. If you need more robust behaviour on Linux, I 
suggest looking into disabling memory overcommit.

----------
nosy: +martin.panter
resolution:  -> not a bug
status: open -> closed

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

Reply via email to