[Python-Dev] Re: Exception compatibility with aliens

2023-01-19 Thread Antoine Pitrou
On Wed, 18 Jan 2023 12:04:41 +0200
Ville Voutilainen via Std-Proposals 
wrote:
> On Wed, 18 Jan 2023 at 11:45, Frederick Virchanza Gotham via
> Std-Proposals  wrote:
> >
> > I have sent this email to two mailing lists for programming language
> > proposals, the one for C++ and the one for Python. If you reply to
> > this email, please make sure you reply to both. You can see the
> > mailing list archives for this month for each list here:
> >
> > C++  :  https://lists.isocpp.org/std-proposals/2023/01/date.php
> > Python  :  
> > https://mail.python.org/archives/list/python-dev@python.org/2023/1/
> >
> > Both C++ and Python have exception handling, however a C++ program
> > which links with a Python library is unable to handle an exception
> > thrown from Python.  
> 
> Perhaps you should just use
> https://www.boost.org/doc/libs/1_81_0/libs/python/doc/html/index.html

I would suggest taking a look at pybind11 for a potentially more modern
design (also, free of boost dependencies).
https://pybind11.readthedocs.io/en/latest/advanced/exceptions.html

Regards

Antoine.


___
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/WGSJJBQA4DK2NK2LQCNLTQZIKML5XVX7/
Code of Conduct: http://python.org/psf/codeofconduct/


[Python-Dev] Requesting a review on a PR

2023-01-19 Thread Wheeler Law
Greetings folks, 

I opened an issue[1] related to respecting the 
`http.client.HTTPConnection.debuglevel` value; I opened a subsequent PR[2] that 
fixes the issue back in November and I was wondering if I could get some 
feedback on it. 

Kind regards,
Wheeler

[1]: https://github.com/python/cpython/issues/99352
[2]: https://github.com/python/cpython/pull/99353
___
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/VIWBQX6KU3PXS6OJR3BN3I3LULWMB255/
Code of Conduct: http://python.org/psf/codeofconduct/