We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Minimal repro in python -m asyncio:
python -m asyncio
import dill def f(x): return x*x dill.source.findsource(f) # prints out `asyncio.__main__`
This commit demonstrates a hotfix: jarmitage@e611d8b
But this also does not work for other derivative REPLs based on Asyncio, for example Sardine: https://github.com/Bubobubobubobubo/sardine/blob/main/sardine/console.py
So it could also be is_module_main = (module and module.__name__ == '__main__' and not file) or file=='<console>'
is_module_main = (module and module.__name__ == '__main__' and not file) or file=='<console>'
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Minimal repro in
python -m asyncio
:This commit demonstrates a hotfix: jarmitage@e611d8b
But this also does not work for other derivative REPLs based on Asyncio, for example Sardine: https://github.com/Bubobubobubobubo/sardine/blob/main/sardine/console.py
So it could also be
is_module_main = (module and module.__name__ == '__main__' and not file) or file=='<console>'
The text was updated successfully, but these errors were encountered: