[issue29338] Output the text signature in the help of a class

2017-03-31 Thread Donald Stufft
Changes by Donald Stufft : -- pull_requests: +913 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue29338] Output the text signature in the help of a class

2017-01-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bu

[issue29338] Output the text signature in the help of a class

2017-01-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset b74a6a7d4389 by Serhiy Storchaka in branch 'default': Issue #29338: Fix test_enum. https://hg.python.org/cpython/rev/b74a6a7d4389 -- ___ Python tracker ___

[issue29338] Output the text signature in the help of a class

2017-01-23 Thread Nick Coghlan
Nick Coghlan added the comment: Enum's interaction with the help subsystem has always been somewhat fragile: http://bugs.python.org/issue18693 In this case, I think a reasonable quick fix would be to add the new text to the expected output for enum instances (allowing this issue to be closed aga

[issue29338] Output the text signature in the help of a class

2017-01-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is easy to fix the test by adding missed lines. But I'm not sure that output the (correct) signature of enum classes makes the help better. Color(value, names=None, *, module=None, qualname=None, type=None, start=1) Ethan, what are your thoughts? ---

[issue29338] Output the text signature in the help of a class

2017-01-23 Thread Xiang Zhang
Xiang Zhang added the comment: Things doesn't come to an end. :-( The enum test suite also gets a related test and make the buildbot fail: FAIL: test_pydoc (test.test_enum.TestStdLib) -- Traceback (most recent call last): Fil

[issue29338] Output the text signature in the help of a class

2017-01-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, I forgot to run tests for such simple change! Thanks for reminder Xiang! -- ___ Python tracker ___ ___

[issue29338] Output the text signature in the help of a class

2017-01-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset cebc9c7ad195 by Serhiy Storchaka in branch 'default': Issue #29338: Don't output an empty signature for class constructor. https://hg.python.org/cpython/rev/cebc9c7ad195 -- ___ Python tracker

[issue29338] Output the text signature in the help of a class

2017-01-23 Thread Xiang Zhang
Xiang Zhang added the comment: The buildbots are failing due to test_pydoc. :-( -- nosy: +xiang.zhang ___ Python tracker ___ ___ Pytho

[issue29338] Output the text signature in the help of a class

2017-01-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Raymond. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue29338] Output the text signature in the help of a class

2017-01-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3d5dcdf26fab by Serhiy Storchaka in branch 'default': Issue #29338: The help of a builtin or extension class now includes the https://hg.python.org/cpython/rev/3d5dcdf26fab -- nosy: +python-dev ___ Python

[issue29338] Output the text signature in the help of a class

2017-01-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: The patch looks fine and meets a real need. I say go ahead and apply it if no other objections arise. -- ___ Python tracker ___ ___

[issue29338] Output the text signature in the help of a class

2017-01-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Proposed patch adds a text signature at the start of class description. -- keywords: +patch stage: -> patch review Added file: http://bugs.python.org/file46373/pydoc-class-signature.patch ___ Python tracker

[issue29338] Output the text signature in the help of a class

2017-01-21 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Pydoc outputs the text signature for C functions. It defines parameters and default values and is a part of function description. Help on built-in function format in module builtins: format(value, format_spec='', /) Return value.__format__(format_spec)