can you show the complete code? It doesn't start with "{:02} I don't think
On Wed, Mar 16, 2016 at 2:34 PM, the.gerenuk--- via Python-list < python-list@python.org> wrote: > The following error message, makes it a bit hard to understand what went > wrong > > >>> "{:02}".format("1") > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > ValueError: '=' alignment not allowed in string format specifier > > (this can happen easily if you read in text files and forget to convert) > > Do you think some better error message should be used? > > For example a hint that "0" does work for the given argument. > -- > https://mail.python.org/mailman/listinfo/python-list > -- Joel Goldstick http://joelgoldstick.com/ <http://joelgoldstick.com/stats/birthdays> http://cc-baseballstats.info/ -- https://mail.python.org/mailman/listinfo/python-list