Re: [Python-Dev] Rules for the Tools directory

2009-12-05 Thread Nick Coghlan
Brett Cannon wrote: > > > On Fri, Dec 4, 2009 at 17:20, Antoine Pitrou > 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? > > > Much

[Python-Dev] Sort out formatting differences in decimal and float

2009-12-05 Thread Stefan Krah
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

Re: [Python-Dev] Sort out formatting differences in decimal and float

2009-12-05 Thread Mark Dickinson
On Sat, Dec 5, 2009 at 11:18 AM, Stefan Krah 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 * format(fl

Re: [Python-Dev] Sort out formatting differences in decimal and float

2009-12-05 Thread skip
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? >>> format(Decima

Re: [Python-Dev] Sort out formatting differences in decimal and float

2009-12-05 Thread Daniel Fetchinson
> 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? > >

Re: [Python-Dev] Sort out formatting differences in decimal and float

2009-12-05 Thread Mark Dickinson
On Sat, Dec 5, 2009 at 1:18 PM, 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 co

Re: [Python-Dev] Sort out formatting differences in decimal and float

2009-12-05 Thread Eric Smith
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 infor

Re: [Python-Dev] Sort out formatting differences in decimal and float

2009-12-05 Thread skip
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

[Python-Dev] [RELEASED] Python 2.7 alpha 1

2009-12-05 Thread Benjamin Peterson
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 s

Re: [Python-Dev] [RELEASED] Python 2.7 alpha 1

2009-12-05 Thread Benjamin Peterson
My apologies. The whatsnew link is actually http://docs.python.org/dev/whatsnew/2.7. 2009/12/5 Benjamin Peterson : > On behalf of the Python development team, I'm pleased to announce the first > alpha release of Python 2.7. -- Regards, Benjamin ___ P

Re: [Python-Dev] [RELEASED] Python 2.7 alpha 1

2009-12-05 Thread Scott Dial
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: http://bugs

Re: [Python-Dev] [RELEASED] Python 2.7 alpha 1

2009-12-05 Thread Brett Cannon
On Sat, Dec 5, 2009 at 10:55, Scott Dial > 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 reviewed for this release? > > No. Since this is an alpha re

Re: [Python-Dev] Sort out formatting differences in decimal and float

2009-12-05 Thread Nick Coghlan
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: {0:%Y-%M-%d}"

Re: [Python-Dev] Sort out formatting differences in decimal and float

2009-12-05 Thread Terry Reedy
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}; Formatte

Re: [Python-Dev] Sort out formatting differences in decimal and float

2009-12-05 Thread Nick Coghlan
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 i