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/2001-November/018476.html below:

[Python-Dev] Python's footprint

[Python-Dev] Python's footprint [Python-Dev] Python's footprintSkip Montanaro skip@pobox.com (Skip Montanaro)
Fri, 09 Nov 2001 09:25:09 +0100
    Greg> wouldn't you also have to specify the name of the C
    Greg> identifier into which that documentation is put?

I think the intent is to declare the __doc__ variables using
DOCSTRING:

    static char int_doc[] =
    DOCSTRING("int(x[, base]) -> integer\n\
    \n\
    Convert a string or number to an integer, if possible.  A floating point\n\
    argument will be truncated towards zero (this does not include a string\n\
    representation of a floating point number!)  When converting a string, use\n\
    the optional base.  It is an error to supply a base when converting a\n\
    non-string.");

Note that if implemented, the DOCSTRING macro will need a Py_ prefix.

-- 
Skip Montanaro (skip@pobox.com)
http://www.mojam.com/
http://www.musi-cal.com/



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