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

Typo in results of help(divmod) #54587

Closed
rdfuhr mannequin opened this issue Nov 9, 2010 · 4 comments
Closed

Typo in results of help(divmod) #54587

rdfuhr mannequin opened this issue Nov 9, 2010 · 4 comments
Labels
docs Documentation in the Doc dir type-bug An unexpected behavior, bug, or error

Comments

@rdfuhr
Copy link
Mannequin

rdfuhr mannequin commented Nov 9, 2010

BPO 10378
Nosy @Trundle

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 = None
closed_at = <Date 2010-11-09.23:55:58.585>
created_at = <Date 2010-11-09.21:00:50.164>
labels = ['type-bug', 'invalid', 'docs']
title = 'Typo in results of help(divmod)'
updated_at = <Date 2010-11-10.06:35:15.617>
user = 'https://bugs.python.org/rdfuhr'

bugs.python.org fields:

activity = <Date 2010-11-10.06:35:15.617>
actor = 'rdfuhr'
assignee = 'docs@python'
closed = True
closed_date = <Date 2010-11-09.23:55:58.585>
closer = 'benjamin.peterson'
components = ['Documentation']
creation = <Date 2010-11-09.21:00:50.164>
creator = 'rdfuhr'
dependencies = []
files = []
hgrepos = []
issue_num = 10378
keywords = []
message_count = 4.0
messages = ['120900', '120901', '120906', '120914']
nosy_count = 3.0
nosy_names = ['Trundle', 'docs@python', 'rdfuhr']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = None
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue10378'
versions = ['Python 2.7']

@rdfuhr
Copy link
Mannequin Author

rdfuhr mannequin commented Nov 9, 2010

When running Python 2.7 if you invoke

help(divmod)

the first line of the resulting help displays

Help on built-in function divmod in module __builtin__:

but I believe that the name of the module is __builtins__

so the line should say

Help on built-in function divmod in module __builtinsq__:

@rdfuhr rdfuhr mannequin assigned docspython Nov 9, 2010
@rdfuhr rdfuhr mannequin added docs Documentation in the Doc dir type-bug An unexpected behavior, bug, or error labels Nov 9, 2010
@rdfuhr
Copy link
Mannequin Author

rdfuhr mannequin commented Nov 9, 2010

I had a typo in my own bug report that was reporting a typo; what I intended to say was the following ( the q should not have been there at the end )

When running Python 2.7 if you invoke

help(divmod)

the first line of the resulting help displays

Help on built-in function divmod in module __builtin__:

but I believe that the name of the module is __builtins__

so the line should say

Help on built-in function divmod in module __builtins__:

@Trundle
Copy link
Mannequin

Trundle mannequin commented Nov 9, 2010

__builtin__ is the correct name for the module (see http://docs.python.org/library/__builtin__.html, especially the note at the end which is the cause of the confusion), hence this is not a bug.

@rdfuhr
Copy link
Mannequin Author

rdfuhr mannequin commented Nov 10, 2010

OK, thanks for the clarification. I am new to Python.

Sent from my iPod

On Nov 9, 2010, at 3:54 PM, Andreas Stührk <report@bugs.python.org> wrote:

Andreas Stührk <andy-python@hammerhartes.de> added the comment:

__builtin__ is the correct name for the module (see http://docs.python.org/library/__builtin__.html, especially the note at the end which is the cause of the confusion), hence this is not a bug.

----------
nosy: +Trundle


Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue10378\>


@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

1 participant