By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,851 Members | 1,118 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,851 IT Pros & Developers. It's quick & easy.

Syntax error in files with with 'iso-8859-15' coding header

P: n/a
I have a default coding header

# -*- coding: iso-8859-15 -*-

in my python files. I now have Problems with this settings. I
swithched to Python 2.4.1 under Windows. When I import files with the
above coding header I get frequent syntax errors with files that work
flawlessly under Linux. The Syntax error usually appear near
continuation lines of the form


When I change this call to

func(arg1, arg2, (list, list))

syntax error goes away as well when I change the coding cookie from:

# -*- coding: iso-8859-15 -*-


# -*- coding: iso-8859-1 -*-

I have these problems only on WinNT with 2.4.1 from python org, not
with my selfcompiled 2.4.1 under Linux. The .py files come from a CVS
repository, so the line endings are converted on checkout.

Is this a known problem or am I doing something totally wrong.

Kind regards
__ Address:
G / \ L Germanischer Lloyd
phone: +49-40-36149-7374 -+----+- Vorsetzen 35 P.O.Box 111606
fax : +49-40-36149-7320 \__/ D-20459 Hamburg D-20416 Hamburg
Sep 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.