GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||
GeezerVison is showing github.com — GH-103319: Fix `inspect.getsourcelines()` to return 1-based line numbers by artemmukhin · Pull Request #103226 · python/cpython Conversation
|
|
@iritkatriel Could you please take a look, as this is a follow-up to #101674 you already reviewed? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
1-based does seem more reasonable. But if we are fixing this, how about the code in |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
The bug in pdb that you describe in the issue may be new, but you are changing behaviour of inspect in the PR. Question is whether this is a bug in inspect. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The doc of I would think this as a bug, but it's true that this is a breaking behavior. If we kept it as it is in |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
If there's a fix in pdb that you can do so we don't release a new bug there, then let's do it. Changing inspect probably would require more discussion. FYI @Yhg1s . |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@iritkatriel Thank you for the quick response. That sounds reasonable. I can create a separate issue regarding @gaogaotiantian Thanks for pointing |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@iritkatriel @gaogaotiantian I have opened a new issue regarding |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
inspect.getsourcelines() to return 1-based line numbersinspect.getsourcelines() to return 1-based line numbers
|
A solution may be to change the documentation, rather than the result, so that existing code does not break. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This PR is stale because it has been open for 30 days with no activity. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.