Jason Tackaberry wrote: > On Thu, 2008-08-07 at 20:08 +0200, Dirk Meyer wrote: >> Only for epydoc? Wouldn't it be easier to just not set the decorator >> for epydoc instead of running a decorator in a decorator? > > I have no idea what you mean here. > > epydoc uses introspection to create the documentation. Part of that > introspection is examining the function signatures, so it shows the > signature in the documentation. > > When you use a decorator, you hide the signature from epydoc: > > def somedec(func): > def newfunc(*args, **kwargs): > func(*args, **kwargs) > return newfunc
IIRC I added some code in some functions to return the old func if epydoc is in sys.modules. I know, also not such a good idea :) Dischi -- My mind not only wanders, sometimes it leaves completely. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Freevo-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel