On Dec 9, 2007 6:29 PM, Terry Reedy <[EMAIL PROTECTED]> wrote: > > "Georg Brandl" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > | Terry Reedy schrieb: > | > It seems your real problem is that repr() rather than str() is applied > | > within collections. (I am not sure exactly why but suspect there is a > | > reason.) > | > | Consider ["1, 2, 3"]. > > OK, but this is only an issue with the difference between the str and repr > of *strings*. The str function of collections *could* be modified to use > str on numbers. The number of digits is irrelevance to the string > formatting issue. The new Number ABC would make this switch easier, of > course.
I don't think this line of argument is productive. I am looking forward to fixes to repr() that maintain the float->binary->float roundtripping property while also make repr(0.1) == "0.1" and repr(0.3) == "0.3". -- --Guido van Rossum (home page: http://www.python.org/~guido/) _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com