-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
f_lineno has different results on Windows and Linux #125422
Comments
Another thing I should mention is that Python 3.8 through 3.11 all pass the unit tests in Linux (i.e. No changes to bdb are mentioned in https://docs.python.org/3/whatsnew/3.12.html, so it's weird that the behavior would change with 3.12 |
Not all changes were listed on whatsnew :) Sometimes the changes were not user visible, or not important enough to make it (there are a lot of commits to stdlib in a version). This is not super serious but it is something we should fix. I'll work on it. |
oh cool, it's an actual bug? This is the first bug I've found in Python :D What should the desired behavior be? I'm not sure if 611 is correct or 1 |
It should be |
…honGH-125427) (cherry picked from commit 703227d) Co-authored-by: Tian Gao <[email protected]>
…honGH-125427) (cherry picked from commit 703227d) Co-authored-by: Tian Gao <[email protected]>
Thank you for reporting this, it's fixed in #125427. |
Bug report
Bug description:
On Windows 10,
f_lineno
is 1. On WSL (Ubuntu 20), it is 611. I don't see any mention of cross-platform differences called out in the bdb docs, so I'm wondering if this is a bug.It's not a WSL-specific issue because I'm getting the same error in Github CI. See https://github.com/Almenon/AREPL-backend/actions/runs/11316437382/job/31468723754?pr=193
Reproduction:
Checkout https://github.com/Almenon/AREPL-backend/tree/8aab53e834be9ec4c1a41de08831107446051bc5. Then:
CPython versions tested on:
3.12
Operating systems tested on:
Linux
Linked PRs
The text was updated successfully, but these errors were encountered: