From 85f67c22e4ad0e17686f32f4177bb19e568e2609 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 16 Nov 2008 19:08:36 +0100 Subject: [PATCH] #41: Recognize C functions as autodocumentable. --- sphinx/ext/autodoc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sphinx/ext/autodoc.py b/sphinx/ext/autodoc.py index db9b71653..6d62c23ca 100644 --- a/sphinx/ext/autodoc.py +++ b/sphinx/ext/autodoc.py @@ -541,7 +541,8 @@ class RstGenerator(object): continue if what == 'module': - if isinstance(member, types.FunctionType): + if isinstance(member, (types.FunctionType, + types.BuiltinFunctionType)): memberwhat = 'function' elif isinstance(member, types.ClassType) or \ isinstance(member, type):