Bugs item #1098134, was opened at 2005-01-07 21:28 Message generated for change (Comment added) made by jlgijsbers You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1098134&group_id=5470
Category: Python Library Group: Python 2.3 >Status: Closed >Resolution: Out of Date Priority: 5 Submitted By: Björn Lindqvist (sonderblade) Assigned to: Nobody/Anonymous (nobody) Summary: getsource and getsourcelines in the inspect module Initial Comment: import inspect class Hi: def oneliner1(): pass def oneliner2(): pass h = Hi() print inspect.getsourcelines(h.oneliner1) print "+++" + inspect.getsource(h.oneliner1) + "+++" Tested on Python 2.3.4. Both the getsource* functions takes the body of onliner1() and oneliner2() in the call. ---------------------------------------------------------------------- >Comment By: Johannes Gijsbers (jlgijsbers) Date: 2005-01-08 12:09 Message: Logged In: YES user_id=469548 This is fixed in Python 2.5 and the upcoming 2.4.1 by patch 1011890. Thanks for the report, though. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1098134&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com