[Python-Dev] New bug, directly assigned, okay?

2005-04-02 Thread Irmen de Jong
I just added a new bug on SF (1175396) and because I think that it is related to other bugs that were assigned to Walter Doerwald, I assigned this new bug directly to Walter too. Is that good practice or does someone else usually assign SF bugs to people? --Irmen _

Re: [Python-Dev] New bug, directly assigned, okay?

2005-04-02 Thread Nick Coghlan
Irmen de Jong wrote: I just added a new bug on SF (1175396) and because I think that it is related to other bugs that were assigned to Walter Doerwald, I assigned this new bug directly to Walter too. Is that good practice or does someone else usually assign SF bugs to people? I've certainly done th

Re: [Python-Dev] New bug, directly assigned, okay?

2005-04-02 Thread Irmen de Jong
Nick Coghlan wrote: > Irmen de Jong wrote: > >> I just added a new bug on SF (1175396) and because I think >> that it is related to other bugs that were assigned to >> Walter Doerwald, I assigned this new bug directly to Walter too. >> >> Is that good practice or does someone else usually assign S

[Python-Dev] hierarchicial named groups extension to the re library

2005-04-02 Thread ottrey
I've written an extension to the re library, to provide a more complete matching of hierarchical named groups in regular expressions. I've set up a sourceforge project for it: http://pyre2.sourceforge.net/ re2 extracts a hierarchy of named groups matches from a string, rather than the flat, i

[Python-Dev] Re: hierarchicial named groups extension to the re library

2005-04-02 Thread Nicolas Fleury
[EMAIL PROTECTED] wrote: import re2 buf='12 drummers drumming, 11 pipers piping, 10 lords a-leaping' regex='^((?P(?P\d+) (?P[^,]+))(, )?)*$' pat2=re2.compile(regex) x=pat2.extract(buf) x {'verse': [{'number': '12', 'activity': 'drummers drumming'}, {'number': '11', 'activity': 'pipers piping'}, {'n

Re: [Python-Dev] Re: hierarchicial named groups extension to the re library

2005-04-02 Thread Josiah Carlson
Nicolas Fleury <[EMAIL PROTECTED]> wrote: > > [EMAIL PROTECTED] wrote: > import re2 > buf='12 drummers drumming, 11 pipers piping, 10 lords a-leaping' > regex='^((?P(?P\d+) (?P[^,]+))(, )?)*$' > pat2=re2.compile(regex) > x=pat2.extract(buf) If one wanted to match the API of t

[Python-Dev] Re: hierarchicial named groups extension to the re library

2005-04-02 Thread Nicolas Fleury
Josiah Carlson wrote: Nicolas Fleury <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote: import re2 buf='12 drummers drumming, 11 pipers piping, 10 lords a-leaping' regex='^((?P(?P\d+) (?P[^,]+))(, )?)*$' pat2=re2.compile(regex) x=pat2.extract(buf) If one wanted to match the API of the re module, o

Re: [Python-Dev] Re: hierarchicial named groups extension to the re library

2005-04-02 Thread Martin v. Löwis
Josiah Carlson wrote: re2 can be used as a limited structural parser. This makes the re module useful for more things than it is currently. The question of it being in the standard library, however, I think should be made based on the criteria used previously (whatever they were). In general, if d

Re: [Python-Dev] hierarchicial named groups extension to the re library

2005-04-02 Thread ottrey
Nicolas Fleury wrote: > > ottrey at py.redsoft.be wrote: > import re2 > buf='12 drummers drumming, 11 pipers piping, 10 lords a-leaping' > regex='^((?P(?P\d+) (?P[^,]+))(, )?)*$' > pat2=re2.compile(regex) > x=pat2.extract(buf) > x > > > > {'verse': [{'number': '12', 'activ