Re: [Tutor] re syntax

2006-08-29 Thread Tiago Saboga
Em Segunda 28 Agosto 2006 15:54, Kent Johnson escreveu: > A 'space character' is the single character \x20. A 'whitespace > character' is any character in a some set of non-printing (white) > characters. I guess it is a subtle distinction but it's common usage, > not just Python; it even has a Wiki

Re: [Tutor] re syntax

2006-08-28 Thread ORIE HURST
>From: Kent Johnson <[EMAIL PROTECTED]> >CC: [EMAIL PROTECTED] txtx back> >> > > > > It's easy ;-) It's the "whitespace" part. I read it as the space >character, > > not as any blank character. I should have noted that new lines are >ignored > > too, but I didn't. > > > > (I just looked a litt

Re: [Tutor] re syntax

2006-08-28 Thread Kent Johnson
Tiago Saboga wrote: > Em Segunda 28 Agosto 2006 11:12, Kent Johnson escreveu: > >> Ahem. Which part of "Whitespace within the pattern is ignored" do you >> not understand? :-) >> > > It's easy ;-) It's the "whitespace" part. I read it as the space character, > not as any blank character. I

Re: [Tutor] re syntax

2006-08-28 Thread Tiago Saboga
Em Segunda 28 Agosto 2006 11:12, Kent Johnson escreveu: > Ahem. Which part of "Whitespace within the pattern is ignored" do you > not understand? :-) It's easy ;-) It's the "whitespace" part. I read it as the space character, not as any blank character. I should have noted that new lines are igno

Re: [Tutor] re syntax

2006-08-28 Thread Kent Johnson
Tiago Saboga wrote: > The problem is: why the hell do I need > to escape special caracters when in verbose mode? And why isn't it made clear > on the re module doc page ( http://docs.python.org/lib/module-re.html ). > > I'll just paste below (or above? I never know how to say this in english) my

[Tutor] re syntax

2006-08-28 Thread Tiago Saboga
A couple of weeks ago I asked about a way to parse man pages, and Danny and Alan answered me with some tips (thanks). I've tryed doclifter, which I already knew, but could not yet master it; in fact, it just doesn't work with many of the man-pages I tried in my debian system. Anyway, I'm refresh

Re: [Tutor] Re: Syntax Check

2005-01-27 Thread Chad Crabtree
I'm going to look more in to import hooks. I am only looking for syntactic sugar, at least at this point. It's not really my ambition to make more efficient code. To Ryan. I looked at COG before (not in this case but general looking at python packages) it doesn't really do what I was thinki

[Tutor] Re: Syntax Check

2005-01-27 Thread Javier Ruere
Chad Crabtree wrote: > Ok I'll explain what I've done so far. [...] > I hope I made myself clearer. Yes. To add new stuff to the language you would have to work at the interpreter level. Probably you can avoid going too deep using import hooks, as it has already been suggested, to modify what's

[Tutor] Re: Syntax Check

2005-01-27 Thread Javier Ruere
Chad Crabtree wrote: > Does anyone happen to know how to turn of the syntax checking in > python? I've been working on a module driven preprocessor but I'd > like to not have to use comment strings. I don't think that's possible. What would the compiler do with code with an invalid syntax? W