This service will be undergoing maintenance at 00:00 UTC, 2017-10-23 It is expected to last about 30 minutes
Bug 1350209 - RHEL 6 Python 2.6 misformats format() output
RHEL 6 Python 2.6 misformats format() output
Status: CLOSED WONTFIX
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: python (Show other bugs)
6.8
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Python Maintainers
BaseOS QE - Apps
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-06-26 09:24 EDT by Marko Myllynen
Modified: 2016-07-15 05:13 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-07-15 05:02:30 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Marko Myllynen 2016-06-26 09:24:51 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
Comment 4 Petr Viktorin 2016-07-15 05:13:18 EDT
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.

Note You need to log in before you can comment on or make changes to this bug.