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/2011-February/108162.html below:

[Python-Dev] Const-correctness in C-API Object Protocol

[Python-Dev] Const-correctness in C-API Object Protocol [Python-Dev] Const-correctness in C-API Object ProtocolReid Kleckner reid.kleckner at gmail.com
Tue Feb 22 21:21:35 CET 2011
On Tue, Feb 22, 2011 at 2:09 PM, Eric Smith <eric at trueblade.com> wrote:
> Also changing it now would be a giant hassle, leading to so-called "const
> poisoning" where many, many APIs need to be changed before everything would
> again work.

The poisoning will not break any users of the API, though, since they
can pass const and non-const pointers.  Internally Python would have
to go through and add const keywords as appropriate when passing
strings around.  IMO it's worth it to not cause this warning for
users.

Reid
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