[Python-checkins] r53340 - python/trunk/Objects/intobject.c

gustavo.niemeyer python-checkins at python.org
Wed Jan 10 17:13:41 CET 2007


Author: gustavo.niemeyer
Date: Wed Jan 10 17:13:40 2007
New Revision: 53340

Modified:
   python/trunk/Objects/intobject.c
Log:
Mention in the int() docstring that a base zero has meaning, as
stated in http://docs.python.org/lib/built-in-funcs.html as well.


Modified: python/trunk/Objects/intobject.c
==============================================================================
--- python/trunk/Objects/intobject.c	(original)
+++ python/trunk/Objects/intobject.c	Wed Jan 10 17:13:40 2007
@@ -1070,8 +1070,9 @@
 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. If the argument is outside the integer range a long object\n\
-will be returned instead.");
+non-string. If base is zero, the proper base is guessed based on the\n\
+string content.  If the argument is outside the integer range a\n\
+long object will be returned instead.");
 
 static PyNumberMethods int_as_number = {
 	(binaryfunc)int_add,	/*nb_add*/


More information about the Python-checkins mailing list