[Zope] windows python differences

Tino Wildenhain tino at wildenhain.de
Fri May 19 03:20:07 EDT 2006


garry saddington wrote:
> On Fri, 2006-05-19 at 06:06 +0200, Andreas Jung wrote:
>> --On 18. Mai 2006 23:21:50 +0100 garry saddington 
>> <garry at schoolteachers.co.uk> wrote:
>> hrows a string index out of range at the
>>> sentence[0] constructs.
>>>
>>> the popen command on windows is:
>>> ispell=os.popen("echo" +word+ "\scholarpack\ancillary\ispell\bin\ispell
>>> -a")
>>>
>>> Anyone know what the difference is on the two platforms?
>>
>> Is this a serious question? Window and Unix use completely different
>> path names (\ vs /).
>>
> I know this as you can see. It is the returned value from readline that
> seems to be different.
> regards
> Garry

dos/windows uses \r\n
unix uses \n
for line breaks. Should not matter
too much anyway since white space
isnt part of your data.

Regards
Tino


More information about the Zope mailing list