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-110050: Adjust the newline position in the TypeError message of the random.seed call. by yilei · Pull Request #110051 · python/cpython Conversation
|
|
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 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
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! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
… of the random.seed call. (pythonGH-110051) (cherry picked from commit ce43d5f) Co-authored-by: Yilei Yang <[email protected]> Co-authored-by: Raymond Hettinger <[email protected]>
|
GH-110625 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
… of the random.seed call. (python#110051) Co-authored-by: Raymond Hettinger <[email protected]>
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.