Re: [Python-3000] [Python-Dev] xrange vs. int.__getslice__

2006-06-13 Thread Thomas Wouters
On 6/13/06, Vladimir 'Yu' Stepanov <[EMAIL PROTECTED]> wrote: You were bothered yet with function xrange ? :) I suggest to replace it.http://www.python.org/dev/peps/pep-0204/ (If you must really discuss this, which would probably be futile and senseless, please do it on python-3000 only.) -- Thomas

[Python-3000] xrange vs. int.__getslice__

2006-06-13 Thread Vladimir 'Yu' Stepanov
You were bothered yet with function xrange ? :) I suggest to replace it. - for i in xrange(100): pass vs. for i in int[:100]: pass - - for i

Re: [Python-3000] [Python-Dev] xrange vs. int.__getslice__

2006-06-13 Thread Vladimir 'Yu' Stepanov
Thomas Wouters wrote: > http://www.python.org/dev/peps/pep-0204/ > > (If you must really discuss this, which would probably be futile and > senseless, please do it on python-3000 only.) Certainly looks very similar. PEP-204 demands change in a parser and considers a new design as replacement to r

Re: [Python-3000] We should write a PEP on what goes into the stdlib

2006-06-13 Thread Michael Chermside
Brett writes: > That makes me think perhaps we should start thinking about collectively > coming up with guidelines [...] on deciding what is needed to accept a > module into the stdlib. Raymond replies: > Each case ultimately gets decided on its merits. Any one reason for > inclusion or exclus

Re: [Python-3000] enhanced descriptors, part 2

2006-06-13 Thread Michael Chermside
tomer writes: > there really is a need for "enhanced descriptors", or something like > that. i'm having serious trouble implementing the position property, > as python is currently limited in this area. No, this doesn't necessarily imply that we need "enhanced descriptors", an alternative soluti

Re: [Python-3000] xrange vs. int.__getslice__

2006-06-13 Thread Boris Borcic
Vladimir 'Yu' Stepanov wrote: > You were bothered yet with function xrange ? :) I suggest to replace it. > > - > for i in xrange(100): pass > vs. > for i in int[:100]: pass > - in a similar vei

Re: [Python-3000] We should write a PEP on what goes into the stdlib

2006-06-13 Thread Ron Adam
Brett Cannon wrote: > So, to start this discussion, here are my ideas... > > First, the modules must have been in the wild and used by the > community. This has worked well so far by making sure the code is > stable and that the API is good. Those modules and packages that necessary parts of

[Python-3000] PEP 3101 update

2006-06-13 Thread Rudy Rudolph
Rudy Rudolph wrote: >It would be nice to have align centered and align on decimal point. >However, with 'g' formatting the number of digits after the point may >vary and there may not even be a decimal point. In this case, a column >of numbers should be aligned at the last digit of the integer par

Re: [Python-3000] enhanced descriptors, part 2

2006-06-13 Thread tomer filiba
> f.position -- used to access the current position > f.position = x -- seek to an absolute position (may be relative to end) > f.seek_by(x)-- seek by a relative amount > > Properties are nice, but there's nothing wrong with methods either. If > we went with the second appr

Re: [Python-3000] enhanced descriptors, part 2

2006-06-13 Thread Greg Ewing
Michael Chermside wrote: > f.position = x -- seek to an absolute position (may be relative to end) although the "relative to end" part would still admit the circularity problem (if it's considered to be a problem - personally I'm not too worried what happens if you're silly enough to try to

Re: [Python-3000] PEP 3101 update

2006-06-13 Thread Greg Ewing
Rudy Rudolph wrote: > '9.3g' which means fill chars and > digits in the first 5 positions, a decimal point if necessary in the > sixth position, and digits and fill chars in the last three positions. So what you're really asking for is an option for suppressing trailing zeroes after a decimal poin