[Python-bugs-list] [ python-Bugs-572341 ] python-mode IM parses code in docstrings
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 16 Jul 2002 09:04:35 -0700
Bugs item #572341, was opened at 2002-06-21 19:14
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=572341&group_id=5470
Category: Demos and Tools
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Adrian van den Dries (cantanker)
Assigned to: Barry A. Warsaw (bwarsaw)
Summary: python-mode 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
----------------------------------------------------------------------
>Comment By: Barry A. Warsaw (bwarsaw)
Date: 2002-07-16 12:04
Message:
Logged In: YES
user_id=12800
Fixed in python-mode.el 4.24
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=572341&group_id=5470