-
-
Notifications
You must be signed in to change notification settings - Fork 246
bpython crashs on large dicts as default parameter #41
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
Comments
Hi hagg, The two issues were entirely unrelated - one was something stupid I'd done with my introduction of docstring display stuff, the other was something that had always puzzled me about cgi.parse, I didn't bother to check what its signature was and, of course, os.environ will be expanded. Anyway, both issues are fixed in the current tip - I now parse the original source code to display the arg name if it's anything strange. Thanks for reporting. |
well, not exactly the same: when typing this is triggered by printing the docstr. maybe it's not a too long line, but a too long comment. but i think this is the same bug, so i just added a comment instead of a new issue. |
when bpython tries to autocomplete function arguments and a default value for an argument is a very large dictionary, bpython crashs with "error: addstr() returned ERR" (curses, too long line?).
http://paste.pocoo.org/show/124117/
i just found one case where this happens:
this function uses //os.environ// as a default value for an argument, which is //probably// very long.
in the help pages the dict is elided ("..." in the middle of the repr):
in the source code (/usr/lib/python2.6/cgi.py) it looks like this:
(happens with latest version from bitbucket)
The text was updated successfully, but these errors were encountered: