This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: python-mode IM parses code in docstrings
Type: Stage:
Components: Demos and Tools Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: barry Nosy List: barry, cantanker
Priority: normal Keywords:

Created on 2002-06-21 23:14 by cantanker, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Messages (2)
msg11301 - (view) Author: Adrian van den Dries (cantanker) Date: 2002-06-21 23:14
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
msg11302 - (view) Author: Barry A. Warsaw (barry) * (Python committer) Date: 2002-07-16 16:04
Logged In: YES 
user_id=12800

Fixed in python-mode.el 4.24
History
Date User Action Args
2022-04-10 16:05:26adminsetgithub: 36785
2002-06-21 23:14:00cantankercreate