gh-67224: Show source lines in tracebacks when using the -c option when running Python#111200
gh-67224: Show source lines in tracebacks when using the -c option when running Python#111200pablogsal merged 6 commits intopython:mainfrom
Conversation
…ion when running Python Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
| that name. | ||
| """ | ||
|
|
||
| import functools |
There was a problem hiding this comment.
These imports are moved to the functions to avoid problems that arise trying to import these modules too early (they help breaking some circular dependency)
|
|
||
| if name and get_source: | ||
| get_lines = functools.partial(get_source, name) | ||
| def get_lines(name=name, *args, **kwargs): |
There was a problem hiding this comment.
This is just to drop the functools dependency
|
There's some tests failing still. |
… -c option when running Python
…ing the -c option when running Python
|
There appears to be merge conflicts. |
|
I fixed the merge conflicts, but it looks like some tests are still failing |
|
The gdb failures look odd so I wonder if they are coming from main. I will take a look at the other failures soon, but this is getting quite tricky because all the test are checking for the name of the source in weird places |
…when using the -c option when running Python
|
I think I found the problem and I have restructured everything to be less annoying to fix everywhere. The fact that this code path is used for everything makes it a bit more difficult to special-case for things that are not calls to |
|
@lysnikolaou Please, take another look when you can |
…ion when running Python (python#111200)
…ion when running Python (python#111200)
Uh oh!
There was an error while loading. Please reload this page.