Re: [Python-3000] Lines breaking

2007-05-28 Thread Martin v. Löwis
> Heh, just today I was wondering if we should kill splitlines: > > $ grep splitlines `find Lib -name '*.py'` | egrep -v > '(difflib|/test/|UserString)' | wc > 24 1111653 > $ egrep 'split[^l]' `find Lib -name '*.py'` | egrep -v > '(difflib|/test/|UserString)' | wc >9164943 63

Re: [Python-3000] Lines breaking

2007-05-28 Thread Georg Brandl
Neal Norwitz schrieb: > On 5/28/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: >> >> Well, I would have complained about that too, except I was too busy >> when splitlines() was snuck into the language behind my back. :-) I > > Heh, just today I was wondering if we should kill splitlines: And pe

Re: [Python-3000] Lines breaking

2007-05-28 Thread Neal Norwitz
On 5/28/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > Well, I would have complained about that too, except I was too busy > when splitlines() was snuck into the language behind my back. :-) I Heh, just today I was wondering if we should kill splitlines: $ grep splitlines `find Lib -name '*.

Re: [Python-3000] Lines breaking

2007-05-28 Thread Guido van Rossum
On 5/29/07, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > >> VT "Vertical Tab" 0B > >> FF "Form Feed" 0C > > > > -1 on making these line-breaking characters by default. > > I like my ASCII text file lines broken by newline chars > > and nothing else. > > The question, of course, is what a newl

Re: [Python-3000] Lines breaking

2007-05-28 Thread Martin v. Löwis
>> VT "Vertical Tab" 0B >> FF "Form Feed" 0C > > -1 on making these line-breaking characters by default. > I like my ASCII text file lines broken by newline chars > and nothing else. The question, of course, is what a newline char is; this whole mess originates from disagreement about this is

Re: [Python-3000] Lines breaking

2007-05-28 Thread Martin v. Löwis
> The change would extend the line breaking behavior to three other > ASCII characters: > NEL "Next Line" 85 > VT "Vertical Tab" 0B > FF "Form Feed" 0C Of these, NEL is not an ASCII character, so Guido's "no change for ASCII-only text" requirement doesn't apply to text containing NEL. > Of

Re: [Python-3000] Support for PEP 3131

2007-05-28 Thread Stephen J. Turnbull
Ka-Ping Yee writes: > Would the display of source code be affected this way as well? Of course! That's what PEP 3131 proponents *want*. From the draft you cite: "certain phenomena in this relationship may look strange to somebody not familiar with bidirectional behavior, but familiar to users

Re: [Python-3000] Support for PEP 3131

2007-05-28 Thread Ka-Ping Yee
On Mon, 28 May 2007, Stephen J. Turnbull wrote: > Now, identifiers are by definition character streams. If an English > speaker would pronounce the spelling of an English word "A B C", and > an Arabic speaker an Arabic word as "1 2 3", then *as an identifier* > the combination English then Arabic

Re: [Python-3000] Support for PEP 3131

2007-05-28 Thread Stephen J. Turnbull
Greg Ewing writes: > Stephen J. Turnbull wrote: > > If an English speaker would pronounce the spelling of an English > > word "A B C", and an Arabic speaker an Arabic word as "1 2 3", > > then *as an identifier* the combination English then Arabic is > > spelled "A B C _ 1 2 3". > But woul

Re: [Python-3000] [Python-Dev] PEP 367: New Super

2007-05-28 Thread Guido van Rossum
Hi Tim, I've gone ahead and cooked up a tiny demo patch that uses im_class to store what you called im_type. Because I don't have the parser changes ready yet, this requires you to declare a keyword-only arg named 'super'; this triggers special code that set it to super(im_class, im_self). http:/

Re: [Python-3000] Lines breaking

2007-05-28 Thread Greg Ewing
Alexandre Vassalotti wrote: > The change would extend the line breaking behavior to three other > ASCII characters: > NEL "Next Line" 85 That's not an ASCII character. > VT "Vertical Tab" 0B > FF "Form Feed" 0C -1 on making these line-breaking characters by default. I like my ASCII text f

Re: [Python-3000] Support for PEP 3131

2007-05-28 Thread Greg Ewing
Stephen J. Turnbull wrote: > If an English > speaker would pronounce the spelling of an English word "A B C", and > an Arabic speaker an Arabic word as "1 2 3", then *as an identifier* > the combination English then Arabic is spelled "A B C _ 1 2 3". But would an Arabic speaker pronounce the ident

Re: [Python-3000] Lines breaking

2007-05-28 Thread Alexandre Vassalotti
On 5/28/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > Can you or someone supply a patch? Put it in the SourceForge patch > manager and post here. I can't promise anything, since I am quite busy my SoC project, but I could try to supply a patch, if you and the other developers are in favor for

Re: [Python-3000] Lines breaking

2007-05-28 Thread Guido van Rossum
Can you or someone supply a patch? Put it in the SourceForge patch manager and post here. OTOH I don't believe that's how 2.x implements these methods, and AFAIK nobody's complained. Is in necessary to change? At the very least I'd be opposed if it changed the behavior of splitting ASCII-only text

Re: [Python-3000] BLists (PEP 3128)

2007-05-28 Thread Daniel Stutzbach
On 5/11/07, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > > Would it be useful if I created an experimental fork of 2.5 > > that replaces array-based lists with BLists, > > so that the performance penalty (if any) on existing code > > can be measured? > > That would likely be an informative exerc

[Python-3000] Lines breaking

2007-05-28 Thread Alexandre Vassalotti
Hi, Just wandering. It would be a good idea to make the string methods split() and splitlines() break lines as specified by the Unicode Standard (Section 5.8 Newline Guidelines)? If you don't have a printed copy, you can read the section here: http://www.unicode.org/versions/Unicode4.0.0/ch05.pdf