main icon indicating copy to clipboard operation
main copied to clipboard

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

Open ironpythonbot opened this issue 10 years ago • 2 comments

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 avatar Dec 09 '14 17:12 ironpythonbot

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 avatar Dec 09 '14 17:12 ironpythonbot

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

ironpythonbot avatar Dec 09 '14 17:12 ironpythonbot