[issue21561] help() on enum34 enumeration class creates only a dummy documentation

2020-05-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Python 2.7 is no longer supported. -- nosy: +serhiy.storchaka resolution: -> out of date stage: test needed -> resolved status: open -> closed ___ Python tracker

[issue21561] help() on enum34 enumeration class creates only a dummy documentation

2014-06-17 Thread Andy Maier
Andy Maier added the comment: Attaching the patch for pydoc.py, relative to the tip of 2.7. the patch contains just the proposed fix, and no longer the debug prints. -- keywords: +patch Added file: http://bugs.python.org/file35673/pydoc.py.patch ___

[issue21561] help() on enum34 enumeration class creates only a dummy documentation

2014-06-17 Thread Andy Maier
Andy Maier added the comment: Attaching the patch for Lib/test/test_pydoc.py, relative to the tip of 2.7. The patch adds a testcase test_class_with_metaclass(), which defines a class that provokes the buggy behavior, and verifies the fix. -- Added file:

[issue21561] help() on enum34 enumeration class creates only a dummy documentation

2014-06-06 Thread Andy Maier
Andy Maier added the comment: Using Ethan's sample code (Thanks!!), I was pointed in the right direction and was able to produce a simple piece of code that reproduces the behavior without depending on enum34, as well as a proposal for a fix in pydoc.py. The problem can be reproduced with a

[issue21561] help() on enum34 enumeration class creates only a dummy documentation

2014-06-06 Thread Andy Maier
Andy Maier added the comment: Here is the bug2.py file pasted into the previous message, for convenience. -- Added file: http://bugs.python.org/file35502/bug2.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21561

[issue21561] help() on enum34 enumeration class creates only a dummy documentation

2014-06-02 Thread Ethan Furman
Ethan Furman added the comment: I think something like the following, taken from http://bugs.python.org/issue19030#msg199920, shoud do the trick for something to test against: class Meta(type): def __getattr__(self, name): if name == 'ham': return

[issue21561] help() on enum34 enumeration class creates only a dummy documentation

2014-06-02 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: -ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21561 ___ ___ Python-bugs-list mailing list

[issue21561] help() on enum34 enumeration class creates only a dummy documentation

2014-05-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Devise a simple test (fail before, work after) that does not require enum34. If this fix is committed, the message could note that the same issue was fixed differently in 3.4 mixed in with other changes. -- nosy: +terry.reedy stage: - test needed

[issue21561] help() on enum34 enumeration class creates only a dummy documentation

2014-05-25 Thread Andy Maier
Andy Maier added the comment: The pydoc.py of Python 3.4 that supposedly has been fixed has a lot of changes compared to 2.7, but the place where I applied my fix in TextDoc.docclass() is unchanged. So it seems that my fix should be regarded only to be a quick fix, and the real fix would be

[issue21561] help() on enum34 enumeration class creates only a dummy documentation

2014-05-23 Thread Andy Maier
New submission from Andy Maier: Using the enum34 backport of enums, the help() function on an enum class Colors displays only: --- Help on class Colors in module __main__: Colors = enum 'Colors' --- Source code to reproduce: --- from enum import Enum # enum34 package class

[issue21561] help() on enum34 enumeration class creates only a dummy documentation

2014-05-23 Thread Ethan Furman
Ethan Furman added the comment: Good work. This bug was fixed in 3.4 with the inclusion of enum. It would definitely be good to fix in 2.7 as well. -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21561

[issue21561] help() on enum34 enumeration class creates only a dummy documentation

2014-05-23 Thread Ned Deily
Ned Deily added the comment: If the problem reported here applies only to the 2.7 backport of enum, which is not part of the Python standard library, shouldn't this issue be closed? -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org

[issue21561] help() on enum34 enumeration class creates only a dummy documentation

2014-05-23 Thread Ethan Furman
Ethan Furman added the comment: The problem will affect anything that uses the same mechanism as enum. It also affects (not verified) all versions of python up to 3.4 where it was fixed because enum exposed it. Besides which, I did not think a bug had to affect stdlib code in order to be

[issue21561] help() on enum34 enumeration class creates only a dummy documentation

2014-05-23 Thread Ned Deily
Ned Deily added the comment: Sorry, I skimmed over the issue and didn't notice that the fix applied to pydoc.py, not enum. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21561 ___