Brett Cannon wrote:
On Fri, Dec 4, 2009 at 17:20, Antoine Pitrou solip...@pitrou.net
mailto:solip...@pitrou.net wrote:
Hello,
I was going to suggest adding ccbench and iobench to the Tools
directory,
so I wonder whether there are any rules for putting stuff there?
Hi,
I'm in the process of implementing formatting in my C-decimal module.
Since testing is quite time consuming, I would appreciate a binding
decision on how the following should be formatted:
from decimal import *
format(float(1234), '020,g')
'0,000,000,000,001,234'
format(float(1234),
On Sat, Dec 5, 2009 at 11:18 AM, Stefan Krah stefan-use...@bytereef.org wrote:
Hi,
I'm in the process of implementing formatting in my C-decimal module.
Since testing is quite time consuming, I would appreciate a binding
decision on how the following should be formatted:
from decimal import
Sorry for being a curmudgeon, however...
format(Decimal(1234), '020,g')
'0,000,000,000,001,234'
format(Decimal(1234), '0=20,g')
'0001,234'
Why in the world would you ever want to insert commas as separators and not
use them consistently?
Sorry for being a curmudgeon, however...
format(Decimal(1234), '020,g')
'0,000,000,000,001,234'
format(Decimal(1234), '0=20,g')
'0001,234'
Why in the world would you ever want to insert commas as separators and not
use them consistently?
On Sat, Dec 5, 2009 at 1:18 PM, s...@pobox.com wrote:
format(Decimal(1234), '020,g')
'0,000,000,000,001,234'
format(Decimal(1234), '0=20,g')
'0001,234'
Why in the world would you ever want to insert commas as separators and not
use them consistently?
So should
Mark Dickinson wrote:
I find it odd that, for float formatting, the choice of fill character
affects whether commas are inserted:
Python 3.2a0 (py3k:76671, Dec 4 2009, 18:55:54)
[GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin
Type help, copyright, credits or license for more information.
Mark So should commas be inserted for any fill character at all?
While I'm at it, it makes no sense to me to pad numbers with anything other
than whitespace or zero. (BTW: I have never liked the new format() stuff,
so I will be sticking with %-formatting as long as it exists in Python. My
On behalf of the Python development team, I'm pleased to announce the first
alpha release of Python 2.7.
Python 2.7 is scheduled to be the last major version in the 2.x series. It
includes many features that were first released in Python 3.1. The faster io
module, the new nested with statement
My apologies. The whatsnew link is actually
http://docs.python.org/dev/whatsnew/2.7.
2009/12/5 Benjamin Peterson benja...@python.org:
On behalf of the Python development team, I'm pleased to announce the first
alpha release of Python 2.7.
--
Regards,
Benjamin
Benjamin Peterson wrote:
On behalf of the Python development team, I'm pleased to announce the first
alpha release of Python 2.7.
Was there a call for bugs that should be reviewed for this release?
I once again will prod for attention to this show-stopping bug for using
IMAP-SSL:
On Sat, Dec 5, 2009 at 10:55, Scott Dial
scott+python-...@scottdial.comscott%2bpython-...@scottdial.com
wrote:
Benjamin Peterson wrote:
On behalf of the Python development team, I'm pleased to announce the
first
alpha release of Python 2.7.
Was there a call for bugs that should be
s...@pobox.com wrote:
My
apologies if I don't understand some amazing generality about format()
format(Header, '=^20s')
'===Header==='
Format a single object {0!r}, multiple times in a single string.
Year: {0.year}; Month: {0.month}; Day: {0.day}; Formatted:
Nick Coghlan wrote:
s...@pobox.com wrote:
My
apologies if I don't understand some amazing generality about format()
format(Header, '=^20s')
'===Header==='
Format a single object {0!r}, multiple times in a single string.
Year: {0.year}; Month: {0.month}; Day: {0.day}; Formatted:
Terry Reedy wrote:
A nice demonstration of what an excellent piece of work the new .format
is or is becoming. I would still like it to be a goal for 3.2 that all
stdlib modules that work with formats accept the new formats and not
just % formats.
Mark Summerfield only covered .format in his
15 matches
Mail list logo