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/2009-January/084696.html below:

[Python-Dev] #ifdef __cplusplus?

[Python-Dev] #ifdef __cplusplus? [Python-Dev] #ifdef __cplusplus?Alexander Belopolsky alexander.belopolsky at gmail.com
Fri Jan 2 08:51:13 CET 2009
On Fri, Jan 2, 2009 at 2:26 AM, Adam Olsen <rhamph at gmail.com> wrote:
..
> Compiling as C++ is too obscure of a feature to warrant uglifying the
> code.

Malloc casts may be hard to defend, but most of python code base
already has them, there is little to be gained from having these casts
in some places and not others.  There are other design flaws that a
C++ compiler may help to catch.  Two examples that come to mind are
use of void* where a typed pointer is a better match and declaring
external functions in .c file instead of including an appropriate
header.  In most cases keeping in mind compliance with C++ leads to
better design, not to uglier code.

With respect to the OP's issue, I have added another patch to
http://bugs.python.org/issue4805 .
More information about the Python-Dev mailing list

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