[Python-Dev] What does a double coding cookie mean?
jcgoble3 at gmail.com
Wed Mar 16 02:29:05 EDT 2016
On Wed, Mar 16, 2016 at 2:07 AM, Chris Angelico <rosuav at gmail.com> wrote:
> Why would you ever have two coding cookies in a file? Surely this
> should be either an error, or ill-defined (ie parsers are allowed to
> pick whichever they like, including raising)?
+1. If multiple coding cookies are found, and all do not agree, I
would expect an error to be raised. That it apparently does not raise
an error currently is surprising to me.
(If multiple coding cookies are found but do agree, perhaps raising a
warning would be a good idea.)
More information about the Python-Dev