Re: py3k - format specifier for strings

2007-09-03 Thread Martin v. Löwis
a = "{0}".format(5.66) a > '5.66' > > There are more options in PEP 3101 (fill, alignment, etc.), but I'm having > trouble implementing them. It would be good if you could describe these troubles in more detail. What have you been trying, what happened, and what did you expect to happen

py3k - format specifier for strings

2007-09-03 Thread Carl Trachte
Hello. Python 3.0.a1 has been released. I'm trying to get the hang of the new string formatting in the form: >>> a = "{0}".format(5.66) >>> a '5.66' There are more options in PEP 3101 (fill, alignment, etc.), but I'm having trouble implementing them. The doc has not yet been written. I haven't