Skip to content
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

notebook: limit stack trace to user's code #18

Open
switham opened this issue Jun 15, 2013 · 0 comments
Open

notebook: limit stack trace to user's code #18

switham opened this issue Jun 15, 2013 · 0 comments
Labels

Comments

@switham
Copy link
Owner

switham commented Jun 15, 2013

If the user gets an error or exception in their Python code, they get a stack trace, which is great, but it extends up beyond their code into the pyinthephone code, which is both distracting and a little bit of a security issue. Trim away the extra.

The relatively new Python standard "code" module may provide some help in this, although, skimming the documentation today, I didn't see anything obviously helpful. Maybe a helpful trick can be borrowed from the source of "code". (What a dumb name.)

(Trimming the stack and using "code" were both Ned Batchelder's suggestions.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant