David C. Fox wrote: ... > I like Alex's suggestion, but if you really want to do this generically, > and not just for re.match, you can create a generic proxy object Yes, a generic (but more explicit) proxy is the Python Cookbook solution I mentioned. But in practice I've only used it for re's, so... Alex