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

Documentation contradicts with implementation on running several files #12965

Open
illright opened this issue May 10, 2021 · 0 comments
Open

Documentation contradicts with implementation on running several files #12965

illright opened this issue May 10, 2021 · 0 comments

Comments

@illright
Copy link

@illright illright commented May 10, 2021

Steps to reproduce

  • Create a test1.py file with the contents import sys; print(1, sys.argv) in the current directory
  • Create a test2.py file with the contents print(2) in the current directory

Expected result

As per the IPython reference:
Both files are executed in sequence, the stdout has 1 ['<cwd>/test.py'] and 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'].

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)

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

Successfully merging a pull request may close this issue.

None yet
2 participants