[Python-bugs-list] [ python-Bugs-572341 ] IM parses code in docstrings
noreply@sourceforge.net
noreply@sourceforge.net
Fri, 21 Jun 2002 16:14:01 -0700
Bugs item #572341, was opened at 2002-06-22 09:14
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=572341&group_id=5470
Category: Demos and Tools
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Adrian van den Dries (cantanker)
Assigned to: Nobody/Anonymous (nobody)
Summary: IM parses code in docstrings
Initial Comment:
When reading a file with code examples, the IM menu
parses the code in the docstrings and ignores the real
code!
For a real example, see Twisted's twisted.usage.py, or
try this example:
# module life
"""
for the meaning of life, try this:
class MyMeaning(life.Meaning):
def __init__(self, foo):
self.foo = foo
"""
# real code follows
class Meaning:
def ferfoo(self):
if self.foo:
return self.foo
else:
return None
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=572341&group_id=5470