New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Execfile unable to take arguments beyond 255! #45977
Comments
I found this problem while using PySNMP and trying to load a custom MIB |
Can you please be more specific? What code exactly are you executing, In the entire Python source code, the error message "Execfile unable to |
Error message from ipython console: <class 'pysnmp.smi.error.SmiError'> Traceback (most recent call last) C:\Documents and Settings\Jack Atkinson\<ipython console> in <module>() c:\python25\lib\site-packages\pysnmp\v4\smi\builder.py in <class 'pysnmp.smi.error.SmiError'>: MIB module Here's the code that loads it: |
This comes from line 1845 in ast.c. It has nothing to do with execfile(), it's just a constraint on the Fixing this would be quite complex, and referring to "this day and age" |
While you can't modify the MIB, I'm sure it would be possible to change |
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 |
Closing it as "won't fix": nobody is really interested in working on the problem. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: