[IronPython] help() on bound methods

Dino Viehland dinov at exchange.microsoft.com
Mon Oct 9 23:48:32 CEST 2006


Thanks for the bug report.  I've filed this as bug #4190 (http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&WorkItemId=4190) .

-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Sanghyeon Seo
Sent: Sunday, October 08, 2006 4:38 AM
To: Discussion of IronPython
Subject: [IronPython] help() on bound methods

>>> from System.IO import MemoryStream
>>> help(MemoryStream.Write)
Help on method-descriptor Write

 |  Write(...)
 |          Write(self, Array[Byte] buffer, int offset, int count)

>>> stream = MemoryStream()
>>> help(stream.Write)
Help on builtin_function_or_method in module __builtin__

 |      <property# __doc__ on builtin_function_or_method>
 | (snip not very useful nonsenses)

One would expect something similar to help on MemoryStream.Write for this. In the interactive environment, one usually wants to see help on bound methods of instances.

I am not sure whether this makes much sense w.r.t. IronPython internal.

Workaround:
>>> help(type(stream).Write)

--
Seo Sanghyeon
_______________________________________________
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