[issue1636] Execfile unable to take arguments beyond 255!

Alexander Belopolsky report at bugs.python.org
Wed Apr 28 00:48:07 CEST 2010


Alexander Belopolsky <alexander.belopolsky at gmail.com> added the comment:

I don't have much to contribute other than a simple test to reproduce the issue:

>>> code = """                                                                                                                                                                                  
... def f(%s):                                                                                                                                                                                  
...   pass                                                                                                                                                                                      
... """ % ','.join('a%d' % i for i in range(300))
>>> exec(code)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<string>", line 2
SyntaxError: more than 255 arguments

----------
nosy: +Alexander.Belopolsky
Added file: http://bugs.python.org/file17113/test.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1636>
_______________________________________


More information about the Python-bugs-list mailing list