[New-bugs-announce] [issue7483] str.format behaviour changed from Python 2.6

Jeong-Min Lee report at bugs.python.org
Sat Dec 12 04:49:37 CET 2009


New submission from Jeong-Min Lee <falsetru at gmail.com>:

In Python 2.6,

>>> '{0:0<30}'.format(1)
'100000000000000000000000000000'
>>> '{0:-<30}'.format(1)
'1-----------------------------'


In Python 2.7a / 3.1,

>>> '{0:0<30}'.format(1)
'000000000000000000000000000001'
>>> '{0:-<30}'.format(1)
'1-----------------------------'

----------
components: Interpreter Core
messages: 96282
nosy: falsetru
severity: normal
status: open
title: str.format behaviour changed from Python 2.6
type: behavior
versions: Python 2.7, Python 3.1

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7483>
_______________________________________


More information about the New-bugs-announce mailing list