Windows Python 2.4: Unbuffered flag causes SyntaxError on interactive sessions?

Reinhold Birkenfeld reinhold-birkenfeld-nospam at wolke7.net
Wed Sep 14 15:53:23 CEST 2005


Irmen de Jong wrote:
> Michael Hoffman wrote:
>> Lonnie Princehouse wrote:
>> 
>>> C:\>python -u
>>> Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)]
>>> on win32
>>> Type "help", "copyright", "credits" or "license" for more information.
>>>
>>>>>> print 'hello'
>>>
>>>
>>>   File "<stdin>", line 1
>>>     print 'hello'
>>>                  ^
>>> SyntaxError: invalid syntax
>> 
>> 
>> Worksforme:
>> 
>> C:\Python24>python.exe -u
>> Python 2.4.1 (#65, May 24 2005, 13:43:04) [MSC v.1310 32 bit (Intel)] on 
>> win32
>> Type "help", "copyright", "credits" or "license" for more information.
>>  >>> print 'hello'
>> hello
>> 
>> Strange that your python build is from 30 March and mine is from 24 May.
> 
> 
> Problem also occurs on my machine using Win XP Home,
> Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on win32
> 
> 
> even just typing "print" at the interactive prompt causes a syntax error...

It __may__ be that this is caused by an error in the codecs machinery which is already
fixed in 2.4 CVS. Could you try this out?

Reinhold



More information about the Python-list mailing list