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 Stephen_Tucker
Recipients Stephen_Tucker
Date 2019-10-03.12:10:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>

I am running Python 2.7.10 on Windows 10.

I have discovered that if a .py source text file (that is, a Module text
file) starts with a UTF-8 Byte Order Mark, the module does not get "found"
by the  import  statement.

I have just spent an inordinate amount of time reaching this conclusion.

I realise that 2.7.10 is probably not being supported any more, however,
please let me ask the questions anyway:

Could ...
   Either:   ... the error message please be more helpful? (Like, for
example,  "Module begins with a Byte Order Mark")
   Or:    ... the BOM be allowed at the start of a Module?


Stephen Tucker.
Date User Action Args
2019-10-03 12:10:17Stephen_Tuckersetrecipients: + Stephen_Tucker
2019-10-03 12:10:17Stephen_Tuckerlinkissue38363 messages
2019-10-03 12:10:16Stephen_Tuckercreate