assignment expression peeve
Paul Rubin
http
Wed Oct 15 13:27:33 EDT 2003
Alex Martelli <aleax at aleax.it> writes:
> Indeed, this is one case where I have in fact used the pattern I
> showed in more generic context in the Cookbook, something like (typing
> the code back in from memory):
>
> class Matcher(object):
> def __init__(self, pat, *args):
> self.re = re.compile(pat, *args)
> self.mo = None
Yes, this is very close to what I ended up doing. GMTA :)
More information about the Python-list
mailing list