-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
gh-110050: Adjust the newline position in the TypeError message of the random.seed call. #110051
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
Conversation
…ssage of the random.seed call.
The newline was intentional. Without it, the error line is 90 characters which is too long:
That said, it might be nice to move the newline to just before the |
Ah OK, this is a strange convention to me, since in many cases you can't control the length of the message when it also includes strings formatted from other variables. Also, the file names in the trackeback are usually already much longer. That said, I updated this PR to just adjust the newline position. Thanks for the review! |
… of the random.seed call. (pythonGH-110051) (cherry picked from commit ce43d5f) Co-authored-by: Yilei Yang <hi@mangoumbrella.com> Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
GH-110625 is a backport of this pull request to the 3.12 branch. |
… of the random.seed call. (python#110051) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Uh oh!
There was an error while loading. Please reload this page.