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
test1.py
import sys; print(1, sys.argv)
test2.py
print(2)
As per the IPython reference: Both files are executed in sequence, the stdout has 1 ['<cwd>/test.py'] and 2.
1 ['<cwd>/test.py']
2
As per ipython --help: The first file is executed, test2.py being its command-line argument, the stdout has 1 ['<cwd>/test.py', 'test2.py'].
ipython --help
1 ['<cwd>/test.py', 'test2.py']
The actual behaviour is as per ipython --help.
Manjaro Linux, Python 3.9.4, IPython 7.22.0 (reproduces on IPython 8.0.0.dev)
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Steps to reproduce
test1.py
file with the contentsimport sys; print(1, sys.argv)
in the current directorytest2.py
file with the contentsprint(2)
in the current directoryExpected result
As per the IPython reference:
Both files are executed in sequence, the stdout has
1 ['<cwd>/test.py']
and2
.As per
ipython --help
:The first file is executed,
test2.py
being its command-line argument, the stdout has1 ['<cwd>/test.py', 'test2.py']
.Actual result
The actual behaviour is as per
ipython --help
.System info
Manjaro Linux, Python 3.9.4, IPython 7.22.0 (reproduces on IPython 8.0.0.dev)
The text was updated successfully, but these errors were encountered: