epydoc, variables and encoding

Michele Petrazzo michele.petrazzo at TOGLIunipex.it
Wed Sep 21 06:48:06 EDT 2005


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



More information about the Python-list mailing list