[issue20440] Use Py_REPLACE/Py_XREPLACE macros

Larry Hastings report at bugs.python.org
Wed Feb 26 19:23:40 CET 2014


Larry Hastings added the comment:

> Barring c++, are we using any C compilers that don't support inlines?

CPython advertises itself as C89 compliant, and C89 doesn't have inlines.  You need to go to C99 to get inlines.

And before you ask--yes, we support a compiler that is not C99 compliant: Microsoft Visual C++.  I'm pretty sure it does have inline support though.

It's possible that every platform officially supported by CPython has a C compiler that supports inlines.  I'm pretty sure people compile Python on unsupported platforms whose compilers don't have inlines (e.g. OS/2).  Anyway, you'd have to get Guido to agree to breaking C89 compatibility, it's not something you could do locally on this patch without (most likely) a big drawn-out discussion on python-dev.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20440>
_______________________________________


More information about the Python-bugs-list mailing list