[New-bugs-announce] [issue33910] update random.Random 's parameter to have a proper name.

Matthias Bussonnier report at bugs.python.org
Wed Jun 20 04:40:15 EDT 2018


New submission from Matthias Bussonnier <bussonniermatthias at gmail.com>:

Docs of random.Random always refer to it with Random([seed]) (`lib/random.py`), tough the parameter is actually named `x` making it : 
 - non obvious what it does.
 - hard to search for.
 - hard to remember when using kwargs.

Obviously changing the name is a change in API, though I doubt it is used much as a kwarg... 
I suggest renaming it to `seed=`, deprecating but still allowing the usage of `x=` for now, until proper removal of `x=`

----------
components: Library (Lib)
messages: 320037
nosy: mbussonn
priority: normal
severity: normal
status: open
title: update random.Random 's parameter to have a proper name.
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33910>
_______________________________________


More information about the New-bugs-announce mailing list