It seems that the new, neutered version (without __match__) will not be able to express something like this: def matcher(*args, **kwargs): import re class ...