[issue43653] Typo in the random.shuffle docs

New submission from Matteo Bertucci <matteobertucci2004@gmail.com>: Hello! The current documentation for random.shuffle reads:
The optional argument random is a 0-argument function returning a random float in [0.0, 1.0); by default, this is the function random().
I believe the range here should use matching symbols, unless I am missing something. ---------- assignee: docs@python components: Documentation messages: 389669 nosy: Akarys, docs@python priority: normal severity: normal status: open title: Typo in the random.shuffle docs type: enhancement _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue43653> _______________________________________

Inada Naoki <songofacandy@gmail.com> added the comment: https://en.wikipedia.org/wiki/Interval_(mathematics) See "Notations for intervals" section in the Wikipedia page. ---------- nosy: +methane _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue43653> _______________________________________

Matteo Bertucci <matteobertucci2004@gmail.com> added the comment: Oh I see, I was used to seeing open intervals using ]a, b[. All good then! ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue43653> _______________________________________

Change by Matteo Bertucci <matteobertucci2004@gmail.com>: ---------- stage: -> resolved status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue43653> _______________________________________
participants (2)
-
Inada Naoki
-
Matteo Bertucci