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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to