Re: [Python-Dev] Compiling the Python sources with a C++ compiler (aCC)

Neil Hodgson: I think it is unlikely that such a large patch and resulting C++ compatibility policy will be accepted.
Paul Svensson:
The Pythin sorces are written in C; that they fail to compile when usung a compiler for a different language is a feature, not a bug.
of course :-) however, most of the changes are good coding practice in any case. the rest are outright inconsistencies in the python source and ought to be fixed - for instance, the macros 'PyMODINIT_FUNC' and 'staticforward' are *not* used with consistency in all, the patch is merely one-liner style changes, and nothing more. The patch is not large. on a philosophical note, one could have said that the Python sources were POSIX, and: "the fact that they fail to compile when using a different OS is a feature not a bug." yet today Python compiles on a wide range of OS's -paul

On 27-jun-04, at 13:56, Paul Sheer wrote:
Neil Hodgson: I think it is unlikely that such a large patch and resulting C++ compatibility policy will be accepted.
Paul Svensson:
The Pythin sorces are written in C; that they fail to compile when usung a compiler for a different language is a feature, not a bug.
of course :-)
however, most of the changes are good coding practice in any case.
the rest are outright inconsistencies in the python source and ought to be fixed -
for instance, the macros 'PyMODINIT_FUNC' and 'staticforward' are *not* used with consistency
This part of your patch should be fairly uncontroversial (but: I've not read your patch and I'm not a Python developer). I'd seperate your patch into two patches, one containing only this part of your patch and another containing the changes that are necessary to compile with a C++ compiler.
in all, the patch is merely one-liner style changes, and nothing more. The patch is not large.
on a philosophical note, one could have said that the Python sources were POSIX, and: "the fact that they fail to compile when using a different OS is a feature not a bug."
That might be because Python started out on a non-POSIX platform (IIRC) :-) Ronald -- X|support bv http://www.xsupport.nl/ T: +31 610271479 F: +31 204416173

Paul Sheer <p@2038bug.com> writes:
Neil Hodgson: I think it is unlikely that such a large patch and resulting C++ compatibility policy will be accepted.
Paul Svensson:
The Pythin sorces are written in C; that they fail to compile when usung a compiler for a different language is a feature, not a bug.
of course :-)
however, most of the changes are good coding practice in any case.
the rest are outright inconsistencies in the python source and ought to be fixed -
for instance, the macros 'PyMODINIT_FUNC' and 'staticforward' are *not* used with consistency
Isn't staticforward a work around for broken compilers? I'm not sure how much brokeness in the compiler we want to live with. Cheers, mwh -- M-x psych[TAB][RETURN] -- try it
participants (3)
-
Michael Hudson
-
Paul Sheer
-
Ronald Oussoren