New submission from Antoine Pitrou:

>>> l = [b''] * (100*1024*1024)
[104918914 refs]
>>> d = b''.join(l)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
SystemError: error return without exception set

(you'll have to adjust the list size based on your system memory size)

----------
components: Interpreter Core
keywords: easy
messages: 176767
nosy: pitrou
priority: normal
severity: normal
stage: needs patch
status: open
title: stringlib_bytes_join doesn't raise MemoryError on allocation failure
type: behavior
versions: Python 3.4

_______________________________________
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