Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slight documentation quirk for random.random #47872

Closed
amc1 mannequin opened this issue Aug 20, 2008 · 2 comments
Closed

Slight documentation quirk for random.random #47872

amc1 mannequin opened this issue Aug 20, 2008 · 2 comments
Assignees
Labels
docs Documentation in the Doc dir type-bug An unexpected behavior, bug, or error

Comments

@amc1
Copy link
Mannequin

amc1 mannequin commented Aug 20, 2008

BPO 3622
Nosy @birkenfeld, @amauryfa

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/birkenfeld'
closed_at = <Date 2008-08-20.22:49:31.479>
created_at = <Date 2008-08-20.22:42:03.423>
labels = ['type-bug', 'invalid', 'docs']
title = 'Slight documentation quirk for random.random'
updated_at = <Date 2008-08-20.22:49:31.478>
user = 'https://bugs.python.org/amc1'

bugs.python.org fields:

activity = <Date 2008-08-20.22:49:31.478>
actor = 'amaury.forgeotdarc'
assignee = 'georg.brandl'
closed = True
closed_date = <Date 2008-08-20.22:49:31.479>
closer = 'amaury.forgeotdarc'
components = ['Documentation']
creation = <Date 2008-08-20.22:42:03.423>
creator = 'amc1'
dependencies = []
files = []
hgrepos = []
issue_num = 3622
keywords = []
message_count = 2.0
messages = ['71582', '71584']
nosy_count = 3.0
nosy_names = ['amc1', 'georg.brandl', 'amaury.forgeotdarc']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = None
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue3622'
versions = ['Python 2.5', 'Python 2.4', 'Python 2.3']

@amc1
Copy link
Mannequin Author

amc1 mannequin commented Aug 20, 2008

The documentation for random.random function shows this:
random() -> x in the interval [0, 1).

That should either be "[0, 1]" or "(0, 1)".

@amc1 amc1 mannequin assigned birkenfeld Aug 20, 2008
@amc1 amc1 mannequin added docs Documentation in the Doc dir type-bug An unexpected behavior, bug, or error labels Aug 20, 2008
@amauryfa
Copy link
Member

[0, 1) denotes an interval, not a python object; 0 is included, 1 is
excluded.

And it follows (one of) the standard syntax to express intervals:
http://en.wikipedia.org/wiki/Interval_notation

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants