Re: Can I run a python program from within emacs?

2008-03-22 Thread David Reitter
On Mar 20, 3:09 pm, jmDesktop <[EMAIL PROTECTED]> wrote: > Hi, I'm trying to learn Python. I using Aquamac an emac > implementation with mac os x. I have a program. If I go to the > command prompt and type pythong myprog.py, it works. Can the program > be run from within the editor or is that n

Re: a good programming text editor (not IDE)

2006-06-15 Thread david . reitter
Slawomir Nowaczyk wrote: > #> That's true, but even emacs and xemacs don't offer simple automatic > #> word wrap (i.e. wrap a line without splitting words or putting an eol > #> or hard carriage return at the end of every line). > > Of course it does... there is longlines.el and longlines-mode in

Re: match groups: optional groups not accessible

2005-06-10 Thread David Reitter
On 10 Jun 2005, at 20:38, Michael Chermside wrote: > David Reitter writes: > >> Why does the following result in an IndexError? >> > [...] > >>>>> import re >>>>> m = re.match('(?Pmaybe)?yes', "yes") >>>>>

match groups: optional groups not accessible

2005-06-10 Thread david . reitter
Why does the following result in an IndexError? I try to match an optional group, and then access it via its group name. The group happens to not participate in the match, but is obviously defined in the pattern. The documentation says that, at least for numbered groups, "If a group is contained in