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
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
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
=?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
=?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 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
>> 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
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
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