Re: [Python-Dev] Regular expressions, Unicode etc.

2007-08-10 Thread Greg Ewing
James Y Knight wrote: > On Aug 8, 2007, at 3:47 PM, Nick Maclaren wrote: > > Firstly, things like backreferences are an absolute no-no. They > > are not regular, and REs with them in cannot be converted to DFAs. > > People keep saying things like this as if GNU grep and tcl's regular > expressio

[Python-Dev] [Python-3000] Universal newlines support in Python 3.0

2007-08-10 Thread Stephen J. Turnbull
Guido van Rossum writes: > However, the old universal newlines feature also set an attibute named > 'newlines' on the file object to a tuple of up to three elements > giving the actual line endings that were observed on the file so far > (\r, \n, or \r\n). This feature is not in PEP 3116, and

Re: [Python-Dev] Regular expressions, Unicode etc.

2007-08-10 Thread Nick Maclaren
James Y Knight <[EMAIL PROTECTED]> wrote: > > > Firstly, things like backreferences are an absolute no-no. They > > are not regular, and REs with them in cannot be converted to DFAs. > > That could be 'solved' by a parser that kicked out such constructions, > > but it would get screams from many u

Re: [Python-Dev] Unicode database

2007-08-10 Thread Nick Maclaren
=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?= <[EMAIL PROTECTED]> wrote: > > Sure. But (again): you don't need to have the mappings at all for > what you want to achieve. So there is no point in downloading them Sigh. No, I don't. But, if I want to be able to merge anything back into the main Pytho

Re: [Python-Dev] Regular expressions, Unicode etc.

2007-08-10 Thread Nick Maclaren
=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?= <[EMAIL PROTECTED]> wrote: > > Your specification was "For Unicode, whatever people agree!" > > I would not call that "Unicode-based". Can we drop this, please? I am happy to agree that I was being unclear (it is a common failing of mine), but I did prov

[Python-Dev] Universal newlines support in Python 3.0

2007-08-10 Thread Guido van Rossum
Python 3.0 currently has limited universal newlines support: by default, \r\n is translated into \n for text files, but this can be controlled by the newline= keyword parameter. For details on how, see PEP 3116. The PEP prescribes that a lone \r must also be translated, though this hasn't been impl

Re: [Python-Dev] Unicode database

2007-08-10 Thread Martin v. Löwis
>> Sure. But (again): you don't need to have the mappings at all for >> what you want to achieve. So there is no point in downloading them > > Sigh. No, I don't. But, if I want to be able to merge anything > back into the main Python source, it is a VERY good idea to use the > existing mechanism

Re: [Python-Dev] Regular expressions, Unicode etc.

2007-08-10 Thread Greg Ewing
Nick Maclaren wrote: > You can convert them to things that are sort of NFA/DFA > hybrids, If you could express it as an NFA, then you could (in principle) convert it to a DFA. So whatever it's using can't be an NFA either. -- Greg ___ Python-Dev mailing

[Python-Dev] Weekly Python Patch/Bug Summary

2007-08-10 Thread Kurt B. Kaiser
Patch / Bug Summary ___ Patches : 404 open ( +0) / 3855 closed ( +8) / 4259 total ( +8) Bugs: 1065 open ( +6) / 6790 closed ( +6) / 7855 total (+12) RFE : 263 open ( +0) / 295 closed ( +0) / 558 total ( +0) New / Reopened Patches __ MSVC++8 x