Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

While we are here, can other changes be made?

1. Increase the size of the constant part of the signature. Currently it is 
only 2 bytes (3rd and 4th bytes are b'\r\n') and it is hard to use them in 
tools like `file`.

2. Split the magic number on two parts. The first part encodes 
backward-incompatible changes and can be updated only in new feature releases. 
The second part encodes backward compatible changes and can be changed in 
bugfix releases.

3. Maybe even include the minimal Python version? This would simplify the 
launcher which needs to map a magic number to Python version.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue31650>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to