> But is it guaranteed that re.compile will always yield > an object of the same type? There are no guarantees in life, but I expect that that is something that plenty of code depends on, so it will likely stay that way. --Guido van Rossum (home page: http://www.python.org/~guido/)