very strange syntax errors
Terry Reedy
tjreedy at udel.edu
Wed Mar 28 13:25:20 EDT 2007
"hg" <hg at nospam.org> wrote in message
news:l4xOh.107071$ia7.61865 at newsfe14.lga...
| 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 ?
Mixing tabs and spaces and not matching (s and 's are typical causes.
More information about the Python-list
mailing list