[Python-checkins] r70325 - peps/trunk/pep-0378.txt

raymond.hettinger python-checkins at python.org
Thu Mar 12 18:28:58 CET 2009


Author: raymond.hettinger
Date: Thu Mar 12 18:28:57 2009
New Revision: 70325

Log:
Add research on the Common Lisp approach.

Modified:
   peps/trunk/pep-0378.txt

Modified: peps/trunk/pep-0378.txt
==============================================================================
--- peps/trunk/pep-0378.txt	(original)
+++ peps/trunk/pep-0378.txt	Thu Mar 12 18:28:57 2009
@@ -57,6 +57,13 @@
 different style and have ultra-flexible custom format
 specifiers like: "_($* #,##0_)".
 
+`Common Lisp`_ uses a COLON before the type specifier to emit a COMMA
+as a thousands separator::
+
+    (format nil "The answer is ~:D." 229345007) 
+                                => "The answer is 229,345,007."
+
+.. _`Common Lisp`: http://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node200.html
 
 Proposal I (from Nick Coghlan)
 ==============================


More information about the Python-checkins mailing list