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-June/024958.html below:

[Python-Dev] zap _Py prefix?

[Python-Dev] zap _Py prefix? [Python-Dev] zap _Py prefix?Skip Montanaro skip@pobox.com
Mon, 3 Jun 2002 13:41:22 -0500
The issue of Michael's static PyTimeout_Err symbol reminded me about a
question I had about _Py-prefixed symbols.  I realize they are all
"internal", but I also recall Tim saying a couple of times that the ANSI C
standard reserves all symbols which begin with underscores for use by
compiler writers.

Should the _Py-prefixed symbols be renamed, for example, from

    _PyUnicode_IsDecimalDigit

to

    Py__Unicode_IsDecimalDigit

?  If so, we would then declare that all external symbols which begin with
"Py__" were part of the private API.  We would of course add macro
definitions during the deprecation period:

    #define _PyUnicode_IsDecimalDigit Py__Unicode_IsDecimalDigit

(It would also be nice to #warn when the macros are used.  Is that possible
with the C preprocessor?)

Skip




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