Issue1831952

classification
Title: patch to make pyclbr.read_module work
Type: Severity: normal
Components: Library Versions:
Milestone:
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: agoucher, zyasoft
Priority: normal Keywords:

Created on 2007-11-14.18:29:57 by agoucher, last changed 2008-09-14.01:52:01 by zyasoft.

Files
File name Uploaded Description Edit Remove
pyclbr.diff agoucher, 2007-11-14.18:29:57 pyclbr.diff
Messages
msg2008 (view) Author: Adam Goucher (agoucher) Date: 2007-11-14.18:29:57
pyclbr.read_module provides information on a module's contents without importing it. In other works, it scans the source code. This works fine in CPython, in Jython, everything is treated as a compiled item (as it should). This breaks the module though. I've attached a diff which adds a bit of extra logic to determine if we should be PY_COMPILED, and if so, reset some variables to make the function work as designed.

-adam
http://adam.goucher.ca
msg3575 (view) Author: Jim Baker (zyasoft) Date: 2008-09-14.01:52:01
In Jython 2.5, pyclbr (Python class browser functionality) apparently
has limited support, as seen in running test_pyclbr. However, full
functionality depends on the old AST used by CPython, which Jython will
never support.
History
Date User Action Args
2008-09-14 01:52:01zyasoftsetstatus: open -> closed
resolution: rejected
messages: + msg3575
nosy: + zyasoft
2007-11-14 18:29:57agouchercreate