[issue21116] Failure to create multiprocessing shared arrays larger than 50% of memory size under linux
Serhiy Storchaka
report at bugs.python.org
Tue Apr 14 13:54:59 CEST 2015
Serhiy Storchaka added the comment:
Instead of the loop you can use writelines():
f.writelines([b'\0' * bs] * (size // bs))
It would be nice to add a comment that estimate why os.ftruncate() or seek+write can't be used here. At least a link to this issue with short estimation.
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21116>
_______________________________________
More information about the Python-bugs-list
mailing list