Re: [Python-Dev] [format] Restrict fill characters for numerical values

2009-11-11 Thread Eric Smith
Stefan Krah wrote: Eric Smith wrote: Stefan Krah wrote: Hi, I think http://www.python.org/dev/peps/pep-3101/ is too liberal with the choice of fill characters for numerical values. As far as I can see, this is quite legal: Python 2.7a0 (trunk:76132M, Nov 6 2009, 15:20:35) [GCC 4.1.3 20080

Re: [Python-Dev] [format] Restrict fill characters for numerical values

2009-11-11 Thread Stefan Krah
Stefan Krah wrote: > I simply think that apart from rounding, the output of format should not > change the numerical value of its argument. The format functions in C do > not allow this to happen. Are there other languages where this is possible? Actually there are other cases: strfmon() allows t

Re: [Python-Dev] [format] Restrict fill characters for numerical values

2009-11-11 Thread Stefan Krah
Eric Smith wrote: > Stefan Krah wrote: > >Hi, > > > >I think http://www.python.org/dev/peps/pep-3101/ is too liberal with the > >choice of fill characters for numerical values. As far as I can see, this > >is quite legal: > > > > > >Python 2.7a0 (trunk:76132M, Nov 6 2009, 15:20:35) > >[GCC 4.1.3

Re: [Python-Dev] [format] Restrict fill characters for numerical values

2009-11-11 Thread Eric Smith
Stefan Krah wrote: Hi, I think http://www.python.org/dev/peps/pep-3101/ is too liberal with the choice of fill characters for numerical values. As far as I can see, this is quite legal: Python 2.7a0 (trunk:76132M, Nov 6 2009, 15:20:35) [GCC 4.1.3 20080623 (prerelease) (Ubuntu 4.1.2-23ubuntu3