very strange syntax errors

hg hg at nospam.org
Wed Mar 28 05:54:29 EDT 2007


Hi,

I'v been facing some very strange errors lately:

one example:

def __init__(self):
....
        import my_info
        some_text = my_info.T_SOME_TEXT
                                      ^ syntax error


I manage to get rid of that one by moving the import on top of my file.

Note: Python 2.4.1 under Windows


Any clue ?

Thanks,

hg





More information about the Python-list mailing list