A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-February/019807.html below:

[Python-Dev] Should Python compile as C++?

[Python-Dev] Should Python compile as C++?Gerhard Häring gh_pythonlist@gmx.de
Tue, 5 Feb 2002 05:52:10 +0100
I'm currently doing a native mingw32 port of Python, and I've hit the
ugly "initializer is not a constant" problem mentioned in the FAQ. Hmm,
looks like I have three options:

1 Fix the Python sources in the Object/ directory and initalize the
  structs in a seperate init_objects function
2 compile Python with a C++ compiler
3 fix the mingw32 compiler

When trying option 2, I recognized that a lot of Python's source is not
valid ANSI C++. There are even variable names like "class" and "new".
There are of course less obvious issues when trying to make the source
compile as C++, in particular a lot more casts are needed. If it's just
that Python is supposed to compile as C++ but it hasn't been tested for
a while, I could do the necessary fixes and submit a patch. But if
that's a new idea, I don't know if fixing it now makes sense.

Because I plan to submit the required changes as a patch when the port
is ready, I'd like to know if you'd accept a patch for option #1.

Gerhard
-- 
This sig powered by Python!
Außentemperatur in München: 6.1 °C      Wind: 4.0 m/s



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4