This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Typo in the random.shuffle docs
Type: enhancement Stage: resolved
Components: Documentation Versions:
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: Akarys, docs@python, methane
Priority: normal Keywords:

Created on 2021-03-29 07:57 by Akarys, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (3)
msg389669 - (view) Author: Matteo Bertucci (Akarys) * Date: 2021-03-29 07:57
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.
msg389670 - (view) Author: Inada Naoki (methane) * (Python committer) Date: 2021-03-29 08:01
https://en.wikipedia.org/wiki/Interval_(mathematics)

See "Notations for intervals" section in the Wikipedia page.
msg389672 - (view) Author: Matteo Bertucci (Akarys) * Date: 2021-03-29 08:03
Oh I see, I was used to seeing open intervals using ]a, b[. All good then!
History
Date User Action Args
2022-04-11 14:59:43adminsetgithub: 87819
2021-03-29 08:03:57Akaryssetstatus: open -> closed
stage: resolved
2021-03-29 08:03:44Akaryssetmessages: + msg389672
2021-03-29 08:01:30methanesetnosy: + methane
messages: + msg389670
2021-03-29 07:57:52Akaryscreate