A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2005-February/051592.html below:

[Python-Dev] subclassing PyCFunction_Type

[Python-Dev] subclassing PyCFunction_Type [Python-Dev] subclassing PyCFunction_TypePhillip J. Eby pje at telecommunity.com
Wed Feb 16 17:43:51 CET 2005
At 11:26 AM 2/16/05 -0500, Bob Ippolito wrote:
> >>> help(FakeBuiltin("name", "name(foo, bar, baz) -> rval"))
>Help on built-in function name:
>
>name(...)
>     name(foo, bar, baz) -> rval

If you wanted to be even more ambitious, you could return FunctionType and 
have a fake func_code so pydoc will be able to see the argument signature 
directly.  :)

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4