Can Epydoc be used to document decorated function in Python?

Discussion in 'Python' started by Victor Khangulov, Jul 28, 2011.

  1. Hello,

    is there a way to use epydoc to document a Python function that has been
    decorated?

    @decorator
    def func1():
    """ My function func1 """
    print "In func1"

    The resulting output of epydoc is that func1 gets listed as a variable
    with no description.
    I am using Epydoc v3.0.1.

    Thanks

    -victor
    Victor Khangulov, Jul 28, 2011
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    282
  2. jelsas
    Replies:
    2
    Views:
    351
    jelsas
    Dec 10, 2008
  3. Steven D'Aprano

    How to peek inside a decorated function

    Steven D'Aprano, Feb 15, 2009, in forum: Python
    Replies:
    6
    Views:
    336
    Peter Otten
    Feb 15, 2009
  4. Casey Hawthorne
    Replies:
    1
    Views:
    696
    Arne Vajhøj
    Mar 18, 2009
  5. Phlip
    Replies:
    8
    Views:
    472
    Phlip
    May 12, 2010
Loading...

Share This Page