diff Objects/floatobject.c @ 23832:ed1ba37a46b7 legacy-trunk

Patch #568124: Add doc string macros.
author Martin v. Löwis <martin@v.loewis.de>
date Thu, 13 Jun 2002 20:33:02 +0000
parents bffc7236c4ba
children 1598a1e473e2
line wrap: on
line diff
--- a/Objects/floatobject.c	Thu Jun 13 20:24:17 2002 +0000
+++ b/Objects/floatobject.c	Thu Jun 13 20:33:02 2002 +0000
@@ -719,10 +719,10 @@
 	return new;
 }
 
-static char float_doc[] =
+PyDoc_STRVAR(float_doc,
 "float(x) -> floating point number\n\
 \n\
-Convert a string or number to a floating point number, if possible.";
+Convert a string or number to a floating point number, if possible.");
 
 
 static PyNumberMethods float_as_number = {