[issue29514] Add a test case that prevents magic number changes in minor releases

Petr Viktorin report at bugs.python.org
Fri Feb 10 12:56:15 EST 2017


Petr Viktorin added the comment:

> How would you propose to fix broken bytecodes in a bugfix be fixed if you can't bump the magic number?

That would depend on the situation. I can imagine that if the bug is severe enough, the number could be bumped, after careful discussion, and with the change being advertised rather loudly.
The test case that's proposed can be changed if it's indeed the best thing to do, but it should at the very least be mentioned in release notes.


FWIW, I'm not convinced the bug here was severe enough. Practically no one is using the 3.5+ syntax in libraries: we checked to find that *zero* packages in Fedora are using the affected opcode. But that's moot now – wider discussion on that should have happened before the release.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29514>
_______________________________________


More information about the Python-bugs-list mailing list