Author terry.reedy
Recipients Arfrever, benjamin.peterson, brett.cannon, eric.snow, loewis, meador.inge, serhiy.storchaka, terry.reedy
Date 2013-09-13.17:48:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1379094539.98.0.427201935541.issue18961@psf.upfronthosting.co.za>
In-reply-to
Content
Which behavior do you propose to change? Does PEP263 specify the response to a self-contradictory encoding comment? What do you think it should say?

I raising is the better behavior. 

Idle notices that it cannot save the file with iso8859-15 encoding, so it saves it with utf-8 encoding instead. Any Python-aware editor that recognizes and uses the encoding cookie would have to either do the same or refuse to save until the encoding specification were changed.

Trying to run the file brings up a error box with SyntaxError: encoding problem: utf-8. Note that Idle runs a syntax check before creating a new subprocess, connecting to it, and trying to actually run the file. Closing the box takes one back to the editor as the spot where the error was noticed, which in this case is at the end of the line.
History
Date User Action Args
2013-09-13 17:49:00terry.reedysetrecipients: + terry.reedy, loewis, brett.cannon, benjamin.peterson, Arfrever, meador.inge, eric.snow, serhiy.storchaka
2013-09-13 17:48:59terry.reedysetmessageid: <1379094539.98.0.427201935541.issue18961@psf.upfronthosting.co.za>
2013-09-13 17:48:59terry.reedylinkissue18961 messages
2013-09-13 17:48:59terry.reedycreate