[issue3158] Doctest fails to find doctests in extension modules

Amaury Forgeot d'Arc report at bugs.python.org
Sat Jun 21 09:52:20 CEST 2008


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

For me, a 'function' is written in Python, a 'builtin' is written in C. 

The fact that it is defined in an extension module is irrelevant, and
depends on the implementation: zlib is an extension module on Unix, but
is linked inside python26.dll on Windows.

maybe inspect.isroutine() is the correct test here.

----------
nosy: +amaury.forgeotdarc

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3158>
_______________________________________


More information about the Python-bugs-list mailing list