>>> 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. :)
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com