[IronPython] bug: Modules with no docstring have wrong __doc__

Dino Viehland dinov at microsoft.com
Tue Feb 24 18:40:55 CET 2009


Thanks for reporting this - it looks like we just need to set the __doc__ in the dict to None.

> -----Original Message-----
> From: users-bounces at lists.ironpython.com [mailto:users-
> bounces at lists.ironpython.com] On Behalf Of Christian Muirhead
> Sent: Tuesday, February 24, 2009 7:51 AM
> To: users at lists.ironpython.com
> Subject: [IronPython] bug: Modules with no docstring have wrong __doc__
> 
> Hi guys -
> 
> Just found a minor bug in IP 2.0.1 - we're working around it in our
> documentation generation tool.
> 
> If you create an empty module, import it and print __doc__, you get:
> 
> module()
> module(dict dictionary)
> module(module parent, dict dictionary)
> module(module parent, dict dictionary, bool isVisible)
> 
> In IP 1 and CPython, it was None.
> I've filed this on codeplex:
> http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=21360
> 
> Cheers,
> Christian
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com



More information about the Ironpython-users mailing list