From 7dbef49f6c669bdf1e5a79b18f762565f6a39e6e Mon Sep 17 00:00:00 2001 From: wirawan Date: Thu, 11 Nov 2010 18:00:01 +0000 Subject: [PATCH] * Minor documentation edit. --- regexps.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/regexps.py b/regexps.py index 683d4c0..2b5cd92 100644 --- a/regexps.py +++ b/regexps.py @@ -1,6 +1,6 @@ # -*- python -*- # -# $Id: regexps.py,v 1.1 2010-10-06 16:37:42 wirawan Exp $ +# $Id: regexps.py,v 1.2 2010-11-11 18:00:01 wirawan Exp $ # # Created: 20101006 # Wirawan Purwanto @@ -55,7 +55,8 @@ class regex(object): def __mod__(self, s): """Match the string to the regex at the any position. Too bad python does not have ~= like perl, so we use the - quirky % or == here.""" + quirky % or == here. + And the regex object must be the LEFT operand!""" self.m = self.rx.search(s) return self.m __eq__ = __mod__