DAGDA SEARCH | Back to results | Support

Message 92607 - Python tracker

Source: https://bugs.python.org/msg92607

homepage

Message92607 ➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.smith
Recipients eric.smith, mark.dickinson, skrah
Date 2009-09-14.11:59:07
SpamBayes Score 4.0670034e-10
Marked as misclassified No
Message-id <1252929550.17.0.575510538996.issue6902@psf.upfronthosting.co.za>
In-reply-to
Content
complex will also need to be addressed. The second error message is
misleading, for the same reason the formatting on float and int is
incorrect:

>> format(3-2j, "0<30")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: Zero padding is not allowed in complex format specifier
>>> format(3-2j, "0=30")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: Zero padding is not allowed in complex format specifier

But this is correct:
>>> format(3-2j, "=30")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: '=' alignment flag is not allowed in complex format specifier

It's not 0 padding that's not allowed, it's the implied sign alignment
when using 0 (without a specified alignment).
History
Date User Action Args
2009-09-14 11:59:10eric.smithsetrecipients: + eric.smith, mark.dickinson, skrah
2009-09-14 11:59:10eric.smithsetmessageid: <1252929550.17.0.575510538996.issue6902@psf.upfronthosting.co.za>
2009-09-14 11:59:08eric.smithlinkissue6902 messages
2009-09-14 11:59:07eric.smithcreate
Supported by The Python Software Foundation,
Powered by Roundup Copyright © 1990-2022, Python Software Foundation
Legal Statements