[Python-3000] PEP 3101 str.format() equivalent of '%#o/x/X'?
Nick Coghlan
ncoghlan at gmail.com
Mon Jun 9 08:07:28 CEST 2008
Eric Smith wrote:
> Nick Coghlan wrote:
> This sort of surprised me when I was writing tests. Even after having
> implemented it, I was expecting "-#x" to work, but it needs to be "#-x".
If you can implement it either way, then after the sign character is
probably the way to go (as Bruce pointed out, that's where the base
indication will actually be inserted).
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
http://www.boredomandlaziness.org
More information about the Python-3000
mailing list