epydoc, variables and encoding

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Michele Petrazzo

    #1

    epydoc, variables and encoding

    I found a "problem" on epydoc. If I specify an encoding, epydoc not find
    my global variables, and if I remove it, it work well.

    code.py:
    #!/usr/bin/env python
    # -*- coding: utf-8 -*-

    MY_VAR = None

    class foo(object):
    def __init__(self, foo):
    """
    Some text
    @param foo: Pass me what you want
    @type foo: A type
    @return: The object
    """
    return foo

    This not work (MY_VAR is silently skipped), but if I remove:
    # -*- coding: utf-8 -*-

    it see MY_VAR and put it to my html file.

    Is it normal?

    Thanks,
    Michele
Working...