Red Hat Bugzilla – Bug 1350209
RHEL 6 Python 2.6 misformats format() output
Last modified: 2016-07-15 05:13:18 EDT
Description of problem: $ cat test.py #!/usr/bin/python floatf = 12.3 infinf = float("inf") strinf = "inf" fmt = "{0:>4.4}" print(fmt.format(floatf)) print(fmt.format(infinf)) print(fmt.format(strinf)) This prints on RHEL 7 / Fedora 23 / Fedora 24 using their Python 2 / Python 3: 12.3 inf inf But on RHEL 6 the output is: 12.3 .0inf inf Version-Release number of selected component (if applicable): python-2.6.6-64.el6.x86_64
Red Hat Enterprise Linux version 6 is entering the Production 2 phase of its lifetime and this bug doesn't meet the criteria for it, i.e. only high severity issues will be fixed. Please see https://access.redhat.com/support/policy/updates/errata/ for further information. As reported, this issue is fixed in Red Hat Enterprise Linux version 7 and in Fedora, etc.