M
Michele Petrazzo
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
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