Re: very strange syntax errors

2007-03-30 Thread John J. Lee
hg <[EMAIL PROTECTED]> writes: > 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

Re: very strange syntax errors

2007-03-28 Thread Peter Otten
Georg Brandl wrote: > Peter Otten schrieb: >> A guess: you may have mixed Unix ("\n") and Windows ("\r\n") newlines. >> Try to ensure that every line ends with "\r\n". > > That shouldn't be a problem since Python reads source files in universal > newline mode. Oops, I should have guessed /that/

Re: very strange syntax errors

2007-03-28 Thread hg
Facundo Batista wrote: > hg wrote: > > >> I'v been facing some very strange errors lately: >> >> one example: > > You'll need to paste here the exact code and the traceback. > > Regards, > > -- > . Facundo > . > Blog: http://www.taniquetil.com.ar/plog/ > PyAr: http://www.python.org/ar/ Hi,

Re: very strange syntax errors

2007-03-28 Thread Georg Brandl
Peter Otten schrieb: > hg wrote: > >> 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

Re: very strange syntax errors

2007-03-28 Thread Facundo Batista
hg wrote: > I'v been facing some very strange errors lately: > > one example: You'll need to paste here the exact code and the traceback. Regards, -- . Facundo . Blog: http://www.taniquetil.com.ar/plog/ PyAr: http://www.python.org/ar/ -- http://mail.python.org/mailman/listinfo/python-lis

Re: very strange syntax errors

2007-03-28 Thread skip
>> 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

Re: very strange syntax errors

2007-03-28 Thread Peter Otten
hg wrote: > 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 t

Re: very strange syntax errors

2007-03-28 Thread David Nicolson
This might be stating the obvious, but have you detabbed your text, if you are using spaces? On 28/03/2007, at 8:18 PM, hg wrote: > hg wrote: > >> Hi, >> >> I'v been facing some very strange errors lately: >> >> one example: >> >> def __init__(self): >> >> import my_info >>

Re: very strange syntax errors

2007-03-28 Thread Terry Reedy
"hg" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | 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

Re: very strange syntax errors

2007-03-28 Thread hg
hg wrote: > 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 im

very strange syntax errors

2007-03-28 Thread hg
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