New submission from Jeong-Min Lee <false...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue7483>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to