[Python-checkins] r75566 - sandbox/trunk/decimal/decimal_in_c/decimal.py
mark.dickinson
python-checkins at python.org
Tue Oct 20 16:10:28 CEST 2009
Author: mark.dickinson
Date: Tue Oct 20 16:10:27 2009
New Revision: 75566
Log:
merge alignment fix (r74725) from py3k
Modified:
sandbox/trunk/decimal/decimal_in_c/decimal.py
Modified: sandbox/trunk/decimal/decimal_in_c/decimal.py
==============================================================================
--- sandbox/trunk/decimal/decimal_in_c/decimal.py (original)
+++ sandbox/trunk/decimal/decimal_in_c/decimal.py Tue Oct 20 16:10:27 2009
@@ -5589,7 +5589,10 @@
fill = '0'
align = '='
format_dict['fill'] = fill or ' '
- format_dict['align'] = align or '<'
+ # PEP 3101 originally specified that the default alignment should
+ # be left; it was later agreed that right-aligned makes more sense
+ # for numeric types. See http://bugs.python.org/issue6857.
+ format_dict['align'] = align or '>'
if format_dict['sign'] is None:
format_dict['sign'] = '-'
More information about the Python-checkins
mailing list