[Cython] Feature request: generate signature information for use by "inspect"

Dieter Maurer dieter at handshake.de
Thu Jun 28 11:12:03 CEST 2012


Stefan Behnel wrote at 2012-6-28 09:25 +0200:
>Dieter Maurer, 28.06.2012 09:04:
>> ...
>>      In this case, I suggest to enhance the
>>      function's docstring by signature information.
>>
>>      I now transform manually my docstrings
>>
>>         def <rv> <f>(<signature>):
>> 	  """<header>
>>
>> 	  <detail>
>> 	  """
>>
>>      into:
>>
>>         def <rv> <f>(<signature>):
>> 	  """<f>(<signature>) -> <rv>: <header>
>>
>> 	  <detail>
>> 	  """
>>
>>      and would be happy to get something similar automatically.
>
>And the time machine strikes again. You can use the "embedsignature"
>compiler option for that.
>
>http://docs.cython.org/src/reference/compilation.html?highlight=embedsignature#compiler-directives


Thank you! I missed this part of the documentation.



--
Dieter


More information about the cython-devel mailing list