[Tracker-discuss] [issue644] 'Random Issue' Button isn't working

2018-06-06 Thread Berker Peksag
Berker Peksag added the comment: Implemented Nick's suggestion in https://hg.python.org/tracker/python-dev/rev/ad6158d8414f ___ PSF Meta Tracker

[Tracker-discuss] [issue644] 'Random Issue' Button isn't working

2018-06-06 Thread Berker Peksag
Berker Peksag added the comment: Ah, I've definitely missed the "You can instantiate your own instances of Random to get generators that don’t share state." part. Thanks! ___ PSF Meta Tracker

[Tracker-discuss] [issue644] 'Random Issue' Button isn't working

2018-06-06 Thread Nick Coghlan
Nick Coghlan added the comment: Huh, I'd never noticed how easy that documentation is to miss: it's in the preamble text at the start of https://docs.python.org/3/library/random.html I filed https://bugs.python.org/issue33783 to suggest giving it some proper Sphinx markup.

[Tracker-discuss] [issue644] 'Random Issue' Button isn't working

2018-06-06 Thread Berker Peksag
Berker Peksag added the comment: Thank you again for taking a look at this, John. I didn't think about using random.Random() to be honest, thank you Nick! Is there a reason why random.Random() is undocumented in the random module documentation?

[Tracker-discuss] [issue644] 'Random Issue' Button isn't working

2018-06-06 Thread Nick Coghlan
Nick Coghlan added the comment: Note that a potential variation of the new approach is that rather than reseeding the default instance, the Action could create and seed a new random.Random() instance every time. It would be slightly slower, but I don't think this gets hit often enough for