question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Documentation contradicts with implementation on running several files

See original GitHub issue

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)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
MrMinocommented, Jul 5, 2021

@strawhat54 yes, that’s correct.

0reactions
MrMinocommented, Oct 23, 2021

Yes, that seems to be the case.

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - Exception handling (contradicting documentation / try- ...
This document claims that the following two code snippets are equivalent. They are. The using statement ensures that Dispose is called even ...
Read more >
Android 7.0 Virtual Files Documentation - Issue Tracker
Thus, there is no contradiction. A virtual file is one whose native representation cannot be obtained using openInputStream but which may be ...
Read more >
Integrity of the Healthcare Record: Best Practices for EHR ...
From a billing perspective, defaulting or copying and pasting clinical information with previous existing documentation from other patient encounters in a ...
Read more >
15-410 Coding Style and Doxygen Documentation
Each file needs to begin with the @file command stating the name of the file. This should be followed by a brief description...
Read more >
Contradiction in .rec documentation
Hi, there are two contradicting statements in the recordIO documentation ... number of files and cross-validate it every time run-time settings change?
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found