Got it. Thanks. On Mon, Apr 5, 2021 at 2:24 PM Eric V. Smith <eric@trueblade.com> wrote:
On Apr 5, 2021, at 4:43 AM, Shreyan Avigyan <pythonshreyan09@gmail.com> wrote:
Yes you are right. But isn't informing people about a change the work of PEP? I mean this is kind of a major change because we're trying to change the error message and/or the type. If the type is not changed then no PEP is required but if the type is changed then there comes a maybe. What should be the perfect solution?
There’s no need for a new exception type. What code would catch this new exception? Just update the text of the existing exception, and update the documentation if need be.
There’s no need for a PEP. Many, many changes are made without PEPs. Just open an issue on bugs.python.org and create a PR.
Eric