Regular Expressions and Threads?
Aahz Maruch
aahz at netcom.com
Thu Jun 15 16:58:50 EDT 2000
More information about the Python-list mailing list
Thu Jun 15 16:58:50 EDT 2000
- Previous message (by thread): Regular Expressions and Threads?
- Next message (by thread): Regular Expressions and Threads?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
In article <3dd7li696x.fsf at amarok.cnri.reston.va.us>, Andrew M. Kuchling <akuchlin at mems-exchange.org> wrote: >aahz at netcom.com (Aahz Maruch) writes: >> >> checking for the existence of a match, that could cause problems. (As >> with anything else, the re module should be thread-safe, but individual >> re objects probably are not.) > >No, individual re objects should be. The MatchObject you get back >from a matching operation contains references to the string, groups, >and original regex object, but a RegexObject shouldn't ever change >after it's been created. Tim Peters put some effort into making the >cache thread-safe. Brian, can you post the relevant bits of code so >we can see what's going on? Oh, right, for some reason I thought the regex object contained the match object (Perl-based brainfart). -- --- Aahz (Copyright 2000 by aahz at netcom.com) Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/ Hugs and backrubs -- I break Rule 6 "real love can't be explained by simplistic platitudes." --piranha
- Previous message (by thread): Regular Expressions and Threads?
- Next message (by thread): Regular Expressions and Threads?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list