Re: [Python-Dev] PEP 427: wheel

2013年2月16日 02:18:15 -0800

On 2013年2月16日 19:18:22 +1000
Nick Coghlan <[email protected]> wrote:
> On Sat, Feb 16, 2013 at 2:21 PM, Daniel Holth <[email protected]> wrote:
> > #. Python scripts must appear in ``scripts`` and begin with exactly
> > ``b'#!python'`` in order to enjoy script wrapper generation and
> > ``#!python`` rewriting at install time. They may have any or no
> > extension.
> 
> For compatibility with file encoding declarations, I believe this
> needs to be relaxed to starting with '#!python' in the source file
> encoding, rather than strictly b'#!python' (which will only be the
> case for ASCII compatible encodings).
I may be wrong, but I am not aware that Python is able to read encoding
declarations in a non-ASCII compatible encoding :-)
Also, given the shebang line is for use by the OS, the appropriate
encoding should be decided by the OS, not Python conventions. But I
would surprised if a shebang-compatible used a non-ASCII encoding by
default.
Regards
Antoine.
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to