This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author fer_perez
Recipients amaury.forgeotdarc, fer_perez
Date 2008-06-21.17:50:12
SpamBayes Score 0.011616657
Marked as misclassified No
Message-id <>
I think there are two issues that need to be separated:

1. The doctest bug.  I'm happy with any resolution for it, and I'm not
claiming that my patch is the best approach.  isroutine() indeed works
in my case, and if that approach works well in general for doctest, I'm
perfectly happy with it.

2. Terminology.  I really disagree with the idea that 

- 'function' describes the implementation language of an object instead
of whether it's a standalone callable (vs an object method).

- 'builtin' doesn't mean the object is "built into the shipped Python"
but instead that it's "written in C".  

The language exposes its builtins via the __builtin__ module precisely
to declare what is part of itself, and it even has in the documentation:

a section that starts:

"""2.1 Built-in Functions

The Python interpreter has a number of functions built into it that are
always available."""

Nowhere does it say that "builtins are written in C and functions in

In summary, I'm happy with any fix for the bug, but I very strongly
disagree with a use of terminology that is confusing and misleading (and
which unfortunately is enshrined in the inspect and types modules in how
they distinguish 'Function' from 'BuiltinFunctionType').

And by the way, by 'extension module' I mean to describe C-extensions,
since that is how most C code is shipped by third-party authors, those
affected by this bug (since the stdlib doesn't seem to use doctests
itself for its own testing of C code).
Date User Action Args
2008-06-21 17:50:14fer_perezsetspambayes_score: 0.0116167 -> 0.011616657
recipients: + fer_perez, amaury.forgeotdarc
2008-06-21 17:50:13fer_perezsetspambayes_score: 0.0116167 -> 0.0116167
messageid: <>
2008-06-21 17:50:13fer_perezlinkissue3158 messages
2008-06-21 17:50:12fer_perezcreate