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

remove context from inspect.stack #624

Merged
merged 1 commit into from
Dec 9, 2022

Conversation

hiaselhans
Copy link
Contributor

This is a quick take on #623

https://docs.python.org/3/library/inspect.html#inspect.stack

inspect.stack(context=1) adds context lines to the stackframe.
using context=0 file loads can be avoided and might bring an improved startup time already

@vitalik vitalik merged commit 327afb7 into vitalik:master Dec 9, 2022
@vitalik vitalik mentioned this pull request Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants