[Python-Dev] Multiple Inclusion of Header Files
Martin v. Loewis
martin@v.loewis.de
11 Oct 2002 19:35:52 +0200
David Abrahams <dave@boost-consulting.com> writes:
> However, I note that Boost.Python has to #include <patchlevel.h> because
> we have to apply workarounds before #including <Python.h> for certain
> versions of Python, so I wouldn't say that it's very unrealistic to think
> applications might need these files separately.
If people do such things, I think we'ld like to hear about that
(atleast if it causes problems). Most likely, people are misguided
when they include other Python headers but Python.h (or include
Python.h after including system headers); so if there is a problem, it
is likely fixed by some other means.
If we commit to supporting things we don't know, we might get into
troubles some day, having either to break those applications some day,
or having to maintain ugly code just because we have to continue to
support applications should not have used the feature in the first
place.
Regards,
Martin