Roundup Robot added the comment:
New changeset d1b9eb9de8af by Serhiy Storchaka in branch '2.7':
Issue #23008: Fixed resolving attributes with boolean value is False in pydoc.
https://hg.python.org/cpython/rev/d1b9eb9de8af
New changeset a480f470c469 by Serhiy Storchaka in branch '3.4':
Issue
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23008
Ethan Furman added the comment:
Patch looks good, get it in! :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23008
___
___
Python-bugs-list
Serhiy Storchaka added the comment:
I think we can ignore this flaw. 'pydoc None' works, and any solution for None
aliases could break existing code that use private pydoc functions.
Here is a patch with a test.
--
stage: test needed - patch review
Added file:
R. David Murray added the comment:
Lgtm, needs a test case.
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23008
___
___
Serhiy Storchaka added the comment:
This is because bool(enum.Enum) is False. Other example:
$ pydoc3 builtins.False
no Python documentation found for 'builtins.False'
$ pydoc3 builtins.True
Help on bool in builtins object:
builtins.True = class bool(int)
...
Here is simple fix.
--
Changes by Ethan Furman et...@stoneleaf.us:
--
nosy: +barry, eli.bendersky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23008
___
___
Ethan Furman added the comment:
In 3.5 at least 'pydoc None' works.
--
stage: patch review - test needed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23008
___
Martin Panter added the comment:
The fix is definitely an improvement. Though there is still one obvious flaw
remaining, which applies to any attribute that is set to None:
$ ~/proj/python/cpython/python -bWall -m pydoc builtins.None
No Python documentation found for 'builtins.None'.
Use
Changes by Mark Lawrence breamore...@yahoo.co.uk:
--
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23008
___
___
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +ethan.furman
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23008
___
___
New submission from Antony Lee:
Not a big deal, but $ pydoc enum.Enum and $ pydoc enum.IntEnum fail to
retrieve the docstrings, while they are visible with $ pydoc enum.
--
components: Library (Lib)
messages: 232298
nosy: Antony.Lee
priority: normal
severity: normal
status: open
title:
12 matches
Mail list logo