Last Updated: February 25, 2016
·
1.406K
· terukizm

SystemError: Objects/stringobject.c:3565: bad argument to internal function

test.py


str = ""
while True:
str += "a" * 1024 * 1024
print len(str)

</pre>

exe:


2144337920
2145386496
2146435072
Traceback (most recent call last):
File "test.py", line 3, in ?
str += "a" * 1024 * 1024
SystemError: Objects/stringobject.c:3565: bad argument to internal function
</pre>
<br/>
nearby 32bit = 2GB, down.

plz use python 2.5 after.