Issue549107

classification
Title: .__doc__ doesn't work in jython
Type: Severity: normal
Components: Core Versions:
Milestone:
process
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: bckfnn Nosy List: bckfnn, lemire
Priority: normal Keywords:

Created on 2002-04-26.14:44:27 by lemire, last changed 2002-05-30.20:10:22 by lemire.

Messages
msg650 (view) Author: Daniel Lemire (lemire) Date: 2002-04-26.14:44:27
.__doc__ attribute doesn't work in Jython. This is
critical since that's how a lot of people document
their work.

Example:

def f():
  """ blabla """
  return


in Python

print f.__doc__

prints "blabla"

in Jython it prints "[]".
msg651 (view) Author: Finn Bock (bckfnn) Date: 2002-05-30.19:40:28
Logged In: YES 
user_id=4201

Seems to work:
Jython 2.1+ on java1.4.0 (JIT: null)
Type "copyright", "credits" or "license" for more information.
>>> def f():
...    """blah"""
...    return
...
>>> print f.__doc__
blah
>>>
msg652 (view) Author: Daniel Lemire (lemire) Date: 2002-05-30.20:10:22
Logged In: YES 
user_id=73205

I agree, I can't reproduce either at this point. But this bug does exist, it 
simply appears that it takes specific circumstances to make it come 
up. I will investigate further and resubmit.
History
Date User Action Args
2002-04-26 14:44:27lemirecreate