[issue13602] format string '%b' doesn't work as expected

2011-12-14 Thread James Classen

New submission from James Classen jclas...@gmail.com:

I notice that, in versions 2.7 and 3.2 on Windows XP (haven't tested any other 
versions or platforms), the following statements in the interpreter work as 
documented:

'%x' % 17
'%o' % 17

and output '11' and '21' respectively, as I expect. However,

'%b' % 17

throws ValueError: unsupported format character 'b' (0x62) at index 1 instead 
of returning '10001'.

--
components: None
messages: 149471
nosy: James.Classen
priority: normal
severity: normal
status: open
title: format string '%b' doesn't work as expected
type: behavior
versions: Python 2.7, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13602
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13602] format string '%b' doesn't work as expected

2011-12-14 Thread James Classen

James Classen jclas...@gmail.com added the comment:

I didn't see section 4.6.2 of the library for 3.2 documentation, only section 
5.6.2 of the 2.7 docs. So this is an invalid issue.

--
resolution:  - invalid
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13602
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com