Commits

Georg Brandl committed 6ca151d

#41: Recognize C functions as autodocumentable.

  • Participants
  • Parent commits 19bd5f3

Comments (0)

Files changed (1)

sphinx/ext/autodoc.py

                 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):