On 8/16/2021 12:47 AM, Guido van Rossum wrote:
My current proposal is to issue a DeprecationWarning in PyCode_New() and PyCode_NewWithPosArgs(), which can be turned into an error using a command-line flag. If it's made an error, we effectively have (B); by default, we have (A).

Then in 3.13 we can drop them completely.

We definitely had legitimate use cases come up when adding positional arguments (hence the new API, rather than breaking the existing one, which was the first attempt at adding the feature).

I don't recall exactly what they are (perhaps Pablo does, or they may be in email/issue archives), but since they exist, presumably they are useful and viable _despite_ the bytecode varying between releases. This suggests there's probably a better API we should add at the same time - possibly some kind of unmarshalling or cloning-with-updates function?

Cheers,
Steve
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/NXSTTN3CVCGAYSCUH24OEZZFIBOEJRBD/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to