[Patches] [ python-Patches-1006219 ] make inspect.getsource show
@decorators
SourceForge.net
noreply at sourceforge.net
Tue Aug 10 13:20:42 CEST 2004
Patches item #1006219, was opened at 2004-08-09 23:32
Message generated for change (Settings changed) made by percivall
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1006219&group_id=5470
Category: Library (Lib)
Group: Python 2.4
>Status: Deleted
Resolution: Wont Fix
Priority: 5
Submitted By: Simon Percivall (percivall)
Assigned to: Nobody/Anonymous (nobody)
Summary: make inspect.getsource show @decorators
Initial Comment:
The getsource function in inspect.py breaks badly with
the @decorators.
The inspect mechanism scans backwards from the topmost
decorator until it finds some acceptable statement (it
can be anything: another function, an import line, etc.).
The patch takes care of that. It'll print all
decorators for a function as well as the function itself.
----------------------------------------------------------------------
Comment By: Simon Percivall (percivall)
Date: 2004-08-10 13:19
Message:
Logged In: YES
user_id=329382
Yeah ... It doesn't really fix anything.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1006219&group_id=5470
More information about the Patches
mailing list