On May 15, 2009, at 4:16 PM, Todd Zullinger wrote:

Security Policy: http://wiki.list.org/x/QIA9Barry Warsaw wrote:
I tend to agree that "normal" users think of globs instead of
regexps.  Unfortunately, there's no good non-filesystem glob module
in Python that I know of.  Ideally, there'd be a module that
translates globs to regexps.  That might not be too hard.

Would fnmatch.translate work?

http://docs.python.org/library/fnmatch.html#fnmatch.translate

Indeed!  Nice find.
-Barry

Attachment: PGP.sig
Description: This is a digitally signed message part

------------------------------------------------------
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9

Reply via email to