You want to use negative lookahead eg.\.(?!py)it matches only if the characters ahead in the regex don't match the pattern in the brackets.
http://docs.python.org/lib/re-syntax.html (about halfway down the page)On 15 Jun 2006 14:11:39 -0700,
Chris Lasher <[EMAIL PROTECTED]> wrote:
Is it possible t
d!>>>So now all I need to know is why now with new style classes the special
functions need to be defined on the class instead of attached to the
instance at any time.
On 08/02/06, Delaney, Timothy (Tim) <[EMAIL PROTECTED]> wrote:
adam johnson wrote:> Hi All.> I was wonde
Hi All.I was wondering why defining a __call__ attribute for a module doesn't make it actually callable.I don't have any reason for doing so, I was just wondering if it worked, and found out it didn't.$ cat
mod.py"""Test callable module"""def __call__(): return "in mod.__call__">>> import mod>>