[DB-SIG] DB-API 2.0 Update: Replacing StandardError with Exception

Marc-Andre Lemburg mal at egenix.com
Fri Sep 2 10:28:33 EDT 2022


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.

Thanks,
-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Experts (#1, Sep 02 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/



More information about the DB-SIG mailing list