Re: [Python-3000] Thoughts on new I/O library and bytecode

2007-03-03 Thread Gareth McCaughan
On Tuesday 27 February 2007 00:39, Greg Ewing wrote: > I can't help feeling the people arguing for b"..." as the > repr format haven't really accepted the fact that text and > binary data will be distinct things in py3k, and are thinking > of bytes as being a replacement for the old string type. B

Re: [Python-3000] PEP 3113 (Removal of Tuple Parameter Unpacking)

2007-03-03 Thread Brett Cannon
On 3/2/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > Very cool. This should make the PEP a complete success! > Thanks to Collin for doing this! Makes my life a heck of a lot easier. -Brett > On 3/2/07, Collin Winter <[EMAIL PROTECTED]> wrote: > > On 3/2/07, Guido van Rossum <[EMAIL PROTECT

Re: [Python-3000] Thoughts on new I/O library and bytecode

2007-03-03 Thread Gareth McCaughan
On Saturday 03 March 2007 16:02, I wrote: > Here's an ugly, impure, but possibly practical answer: > give each bytes object a single-bit flag meaning something > like "mostly textual"; ... > Obviously the flag wouldn't affect comparisons or hashing. Josiah Carlson mailed me to point out that, duh

Re: [Python-3000] Thoughts on new I/O library and bytecode

2007-03-03 Thread Bob Ippolito
On 3/3/07, Gareth McCaughan <[EMAIL PROTECTED]> wrote: > On Tuesday 27 February 2007 00:39, Greg Ewing wrote: > > > I can't help feeling the people arguing for b"..." as the > > repr format haven't really accepted the fact that text and > > binary data will be distinct things in py3k, and are think

Re: [Python-3000] Thoughts on new I/O library and bytecode

2007-03-03 Thread Daniel Stutzbach
On 3/3/07, Bob Ippolito <[EMAIL PROTECTED]> wrote: > When Erlang is printing the "repr" of a list or binary term to the > shell it first checks to see if every item is printable ASCII integer. > If so, then it prints as an ASCII string. Otherwise, it prints as a > list of decimal integers. It doesn

Re: [Python-3000] Thoughts on new I/O library and bytecode

2007-03-03 Thread Bob Ippolito
On 3/3/07, Daniel Stutzbach <[EMAIL PROTECTED]> wrote: > On 3/3/07, Bob Ippolito <[EMAIL PROTECTED]> wrote: > > When Erlang is printing the "repr" of a list or binary term to the > > shell it first checks to see if every item is printable ASCII integer. > > If so, then it prints as an ASCII string.

Re: [Python-3000] PEP 3113 (Removal of Tuple Parameter Unpacking)

2007-03-03 Thread Jim Jewett
I have mixed feelings; I won't go so far as to say I oppose removing tuple-arguments, but some of the problems do have other solutions. On 3/2/07, Brett Cannon <[EMAIL PROTECTED]> wrote: > But there is great difficulty when it comes to tuple parameters. The > existence of a tuple parameter is de

Re: [Python-3000] Thoughts on new I/O library and bytecode

2007-03-03 Thread Nick Coghlan
Daniel Stutzbach wrote: > On 3/3/07, Bob Ippolito <[EMAIL PROTECTED]> wrote: >> When Erlang is printing the "repr" of a list or binary term to the >> shell it first checks to see if every item is printable ASCII integer. >> If so, then it prints as an ASCII string. Otherwise, it prints as a >> list

Re: [Python-3000] PEP 3113 (Removal of Tuple Parameter Unpacking)

2007-03-03 Thread Brett Cannon
On 3/3/07, Jim Jewett <[EMAIL PROTECTED]> wrote: > I have mixed feelings; I won't go so far as to say I oppose removing > tuple-arguments, but some of the problems do have other solutions. > Sure some of them have other solutions, but that does not mean that they should be fixed just to save this