Re: DB-API 2.0 Update: Replacing StandardError with Exception
Marc-Andre Lemburg <[email protected]> Tue, 6 Sep 2022 16:51:47 +0200
| Newsgroups | gmane.comp.python.db |
|---|---|
| Organization | eGenix.com Software GmbH; http://www.egenix.com/ |
| Message-ID | <[email protected]> |
On 02.09.2022 16:28, Marc-Andre Lemburg wrote:
> Hi all,
>
> an issue was pointed out at:
>
> https://github.com/python/peps/issues/2776
>
> with the PEP 249 - Python Database API 2.0. At the time we were creating
> the standard in 1999, the default base class for errors was the
> StandardError exception class.
>
> In Python 3, StandardError was removed, since all exception class trees
> are now rooted directly at the Exception class.
>
> The standard migration path is to simply replace StandardError with
> Exception when moving to Python 3.
>
> It's interesting that no one noticed until recently, that the DB-API 2.0
> was still using StandardError.
>
> I have now fixed the text and replaced StandardError with Exception
> and also included a footnote explaining the change.
>
> Please have a look:
>
> https://github.com/python/peps/pull/2781
>
> If I don't hear any complaints, I'll merge this in the next couple of
> days.
FYI: This has been merged now. Thanks to all reviewers.
--
Marc-Andre Lemburg
eGenix.com
Professional Python Services directly from the Experts (#1, Sep 06 2022)
>>> Python Projects, Coaching and Support ... https://www.egenix.com/
>>> Python Product Development ... https://consulting.egenix.com/
________________________________________________________________________
::: We implement business ideas - efficiently in both time and costs :::
eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611
https://www.egenix.com/company/contact/
https://www.malemburg.com/
_______________________________________________
DB-SIG maillist - [email protected]
https://mail.python.org/mailman/listinfo/db-sig