[IronPython] help() on bound methods
Sanghyeon Seo
sanxiyn at gmail.com
Sun Oct 8 13:38:04 CEST 2006
>>> 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
More information about the Ironpython-users
mailing list