Eric Smith <e...@trueblade.com> added the comment: The test as written will always give an error for None. I think the better fix is to change it to be:
if format_dict['type'] is None or format_dict['type'] in 'gG': That "fixes" this particular exception, but since the format specifier is invalid, it produces nonsense. I think Decimal's format parser needs to detect this as an error. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6850> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com