cResolvers storeValues returnValues wrappedOperation signature and each of the registered values should be providing the information required to determine what they are actually doing... """ value_doc.specialize_to(apidoc.RoutineDoc) value_doc.is_imported = False value_doc.is_public = True if hasattr( value,' pyConverterNames' ): value_doc.posargs = value.pyConverterNames else: value_doc.posargs = value.wrappedOperation.argNames value_doc.posarg_defaults = [None]*len(value_doc.posargs) if hasattr( value, '__doc__' ): value_doc.docstring = docintrospecter.get_docstring(value) return value_doc docintrospecter.register_introspecter( isCtypesFunction, ctypesIntrospecter, ) docintrospecter.register_introspecter( isWrapperFunction, wrapperInstrospecter, ) from epydoc.cli import cli cli()
if hasattr(func, '__code__'): routine_doc.lineno = func.__code__.co_firstlineno else: # [XX] I should probably use UNKNOWN here?? # dvarrazzo: if '...' is to be changed, also check that # `docstringparser.process_arg_field()` works correctly. # See SF bug #1556024. routine_doc.posargs = ['...'] routine_doc.posarg_defaults = [None] routine_doc.kwarg = None routine_doc.vararg = None return routine_doc docintrospecter.register_introspecter( lambda value: getattr(value, '__epydoc_asRoutine', False), Op_to_RoutineDoc, priority=-1) import getopt from collections import defaultdict if __name__ == '__main__': # Equivalent of sys.path[0]/../.. throot = os.path.abspath( os.path.join(sys.path[0], os.pardir, os.pardir)) options = defaultdict(bool) opts, args = getopt.getopt( sys.argv[1:], 'o:f:',
wrappedOperation signature and each of the registered values should be providing the information required to determine what they are actually doing... """ value_doc.specialize_to(apidoc.RoutineDoc) value_doc.is_imported = False value_doc.is_public = True if hasattr(value, ' pyConverterNames'): value_doc.posargs = value.pyConverterNames else: value_doc.posargs = value.wrappedOperation.argNames value_doc.posarg_defaults = [None] * len(value_doc.posargs) if hasattr(value, '__doc__'): value_doc.docstring = docintrospecter.get_docstring(value) return value_doc docintrospecter.register_introspecter( isCtypesFunction, ctypesIntrospecter, ) docintrospecter.register_introspecter( isWrapperFunction, wrapperInstrospecter, ) from epydoc.cli import cli cli()