[Python-Dev] Re: Using the Python C API in C++

2022年4月28日 09:14:29 -0700

On 2022年4月28日 17:52:40 +0200
Victor Stinner <[email protected]> wrote:
> Recently, a issue about C++20 compatibility was reported:
> 
> "The Python library will not compile with a C++2020 compiler because
> the code uses the reserved "module" keyword"
> https://github.com/python/cpython/issues/83536
> 
> In fact, after a long study, Python C API is *not* affected by this
> issue. Using "module" remains valid in C++20: see the issue for
> details.
I'm not surprised. The C++ committee takes compatibility extremely
seriously...
Regards
Antoine.
> 
> Victor
> 
> On Thu, Apr 28, 2022 at 5:19 PM Antoine Pitrou <[email protected]> wrote:
> >
> > On 2022年4月28日 22:03:25 +0900
> > "Stephen J. Turnbull" <[email protected]> wrote: 
> > > [email protected] writes:
> > > 
> > > > While I don't know who proposed C++11 or where, I'd therefore like
> > > > to propose to move to _at least_ C++14. 
> > >
> > > What benefits does this have for Python development? 
> >
> > Let me second that question as well.
> >
> > I work on Apache Arrow, where the C++ parts require C++11 (and we can't
> > go further than this for now because of R compatibility concerns). We
> > could say that enabling the Python bindings switches the required C++
> > version to C++14, but that would bring complication for no actual again
> > given that you're not likely to benefit from C++14 features in the
> > header files of a *C* project, are you?
> >
> > Regards
> >
> > Antoine.
> >
> >
> > _______________________________________________
> > Python-Dev mailing list -- [email protected]
> > To unsubscribe send an email to [email protected]
> > https://mail.python.org/mailman3/lists/python-dev.python.org/
> > Message archived at 
> > https://mail.python.org/archives/list/[email protected]/message/BIK3SEBQVCX4Y5IX3VDXGSL72P5PWB77/
> > Code of Conduct: http://python.org/psf/codeofconduct/ 
> 
> 
> 
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/LCWKZDADMICV3DRNKCLCNDHTXJXTCZ7K/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to