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.
Written by KOIZUMI teruaki
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Python
Authors
Related Tags
#python
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#