IronLanguages / main

Work for this repo has moved to https://github.com/IronLanguages/ironpython2
1.16k stars 347 forks source link

Module __doc__ is None when using `ipy -m module.py` #962

Open ironpythonbot opened 9 years ago

ironpythonbot commented 9 years ago

The problem is demonstrated by the example below. It occurs both with IPY 2.6.2 and 2.7.

D:>type mymod.py
"""Hello, Kitty!"""

print "Greeting:", * doc *

D:>ipy mymod.py
Greeting: Hello, Kitty!

D:>ipy -m mymod
Greeting: None

D:>python -m mymod
Greeting: Hello, Kitty!

Work Item Details

Original CodePlex Issue: Issue 31570 Status: Proposed Reason Closed: Unassigned Assigned to: Unassigned Reported on: Oct 10, 2011 at 2:46 PM Reported by: pekkaklarck Updated on: Feb 22, 2013 at 2:09 AM Updated by: jdhardy

ironpythonbot commented 9 years ago

On 2011-10-10 21:48:37 UTC, pekkaklarck commented:

Because of this problem you cannot start Robot Framework (http://robotframework.py) like ipy -m robot.runner like you can with Python and Jython. We can add a workaround for this in future releases but that's still pretty annoying.

ironpythonbot commented 9 years ago

On 2011-10-10 21:55:22 UTC, pekkaklarck commented:

Ooops, it's obviously http://robotframework.org. There are separate instructions to get it working with IronPython [1] and we plan to ease the installation in RF 2.7 release (and having this particular bug fixed would help).

[1] http://code.google.com/p/robotframework/wiki/DotNetSupport