| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
…ssage of the random.seed call.
|
The newline was intentional. Without it, the error line is 90 characters which is too long: >>> len('TypeError: The only supported seed types are: None, int, float, str, bytes, and bytearray.')
90
That said, it might be nice to move the newline to just before the None giving a more natural line break. |
Sorry, something went wrong.
|
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.
… 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. |
Sorry, something went wrong.
… of the random.seed call. (python#110051) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.