This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Phillip.M.Feldman@gmail.com
Recipients Phillip.M.Feldman, Phillip.M.Feldman@gmail.com, loewis
Date 2011-10-17.04:22:13
SpamBayes Score 2.4371237e-08
Marked as misclassified No
Message-id <CAB2ViTZ2ZZnfueukZQ8yORQK7=nRJTFXZ3Hcju5QCT9TOfXPzg@mail.gmail.com>
In-reply-to <1318677962.38.0.0174023308327.issue13185@psf.upfronthosting.co.za>
Content
Hello Martin,

This is a fine example of the so-called "is-ought" controversy.  The error
message is indeed telling me exactly what the problem is, but the underlying
problem is that this scheme was poorly thought out.  Clearly, the stripping
of comments and the source decoding should both be done in a single pass,
and the source decoding should not be applied to the comments.

Phillip

On Sat, Oct 15, 2011 at 4:26 AM, Martin v. Löwis <report@bugs.python.org>wrote:

>
> Martin v. Löwis <martin@v.loewis.de> added the comment:
>
> The error message told you exactly what the problem is. Your source file
> does not conform to PEP 263. The PEP also explains why this applies to
> comments as well: because the entire file gets decoded according to the
> source encoding, and parsing (including determining what comments are) only
> starts afterwards.
>
> Closing the report as invalid.
>
> ----------
> nosy: +loewis
> resolution:  -> invalid
> status: open -> closed
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue13185>
> _______________________________________
>
History
Date User Action Args
2011-10-17 04:22:15Phillip.M.Feldman@gmail.comsetrecipients: + Phillip.M.Feldman@gmail.com, Phillip.M.Feldman
2011-10-17 04:22:14Phillip.M.Feldman@gmail.comlinkissue13185 messages
2011-10-17 04:22:13Phillip.M.Feldman@gmail.comcreate