[issue38363] No Module named ..." and UTF-8 Byte Order Marks
Stephen Tucker
report at bugs.python.org
Thu Oct 3 08:10:17 EDT 2019
New submission from Stephen Tucker <stephen_tucker at sil.org>:
Hi,
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?
Thanks.
Stephen Tucker.
----------
messages: 353841
nosy: Stephen_Tucker
priority: normal
severity: normal
status: open
title: No Module named ..." and UTF-8 Byte Order Marks
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38363>
_______________________________________
More information about the Python-bugs-list
mailing list