Re: [Python-3000] Issues with PEP 3101 (string formatting)

2007-06-23 Thread Chris McDonough
On Jun 24, 2007, at 2:01 AM, Talin wrote: > The current design is a mid-point between Perl's interpolated > strings (which can contain arbitrary expressions), and C-style > printf. The guiding rule is to allow expressions which increase > convenience and expressiveness, and which are likely

Re: [Python-3000] Issues with PEP 3101 (string formatting)

2007-06-23 Thread Talin
Chris McDonough wrote: > Allowing attribute and/or item access within templating expressions > has historically been the domain of full-on templating languages > (which invariably also have a way to do repeats, conditionals, > arbitrary method calls, etc). > > I think it should probably stay

Re: [Python-3000] [Python-Dev] Issues with PEP 3101 (string formatting)

2007-06-23 Thread Brett Cannon
On 6/20/07, Greg Falcon <[EMAIL PROTECTED]> wrote: > On 6/19/07, Chris McDonough <[EMAIL PROTECTED]> wrote: > > Given that security is a concern at all, the only truly reasonable > > way to "limit security issues" is to disallow item and attribute > > access completely within the string templating

Re: [Python-3000] [Python-Dev] Issues with PEP 3101 (string formatting)

2007-06-23 Thread Talin
I haven't responded to this thread because I was hoping some of the original proponents of the feature would come out to defend it. (Remember, 3101 is a synthesis of a lot of people's ideas gleaned from many forum postings - In some cases I am willing to defend particular aspects of the PEP, an

Re: [Python-3000] StringIO/BytesIO in io.py doesn't over-seek properly

2007-06-23 Thread Guido van Rossum
On 6/23/07, Alexandre Vassalotti <[EMAIL PROTECTED]> wrote: > On 6/23/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > On 6/23/07, Alexandre Vassalotti <[EMAIL PROTECTED]> wrote: > > > I think found a bug in the implementation of StringIO/BytesIO in the > > > new io module. I would like to fix

Re: [Python-3000] StringIO/BytesIO in io.py doesn't over-seek properly

2007-06-23 Thread Alexandre Vassalotti
On 6/23/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On 6/23/07, Alexandre Vassalotti <[EMAIL PROTECTED]> wrote: > > I think found a bug in the implementation of StringIO/BytesIO in the > > new io module. I would like to fix it, but I am not sure what should > > be the correct behavior. Any h

Re: [Python-3000] StringIO/BytesIO in io.py doesn't over-seek properly

2007-06-23 Thread Guido van Rossum
On 6/23/07, Alexandre Vassalotti <[EMAIL PROTECTED]> wrote: > Hello, > > I think found a bug in the implementation of StringIO/BytesIO in the > new io module. I would like to fix it, but I am not sure what should > be the correct behavior. Any hint on this? BytesIO should behave the way Unix file

[Python-3000] StringIO/BytesIO in io.py doesn't over-seek properly

2007-06-23 Thread Alexandre Vassalotti
Hello, I think found a bug in the implementation of StringIO/BytesIO in the new io module. I would like to fix it, but I am not sure what should be the correct behavior. Any hint on this? And one more thing, the close method on StringIO/BytesIO objects doesn't work. I will try to fix that too.

Re: [Python-3000] Python 3000 Status Update (Long!)

2007-06-23 Thread Nicko van Someren
On 21 Jun 2007, at 21:21, Bill Janssen wrote: >>> It should amount to "map(+, operands)". >> >> Or, to be pedantic, this: >> >> reduce(lambda x, y: x.__add__(y), operands) > > Don't you mean: > >reduce(lambda x, y: x.__add__(y), operands[1:], operands[0]) In the absence of a "start" val