[Python-Dev] Python's footprint

Skip Montanaro skip@pobox.com (Skip Montanaro)
2001年11月09日 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/

AltStyle によって変換されたページ (->オリジナル) /