'Constructor that prevents BasePattern from being instantiated.'

def __new__(cls, *args, **kwds):

    assert (cls is not BasePattern), 'Cannot    instantiate    BasePattern'
    return object.__new__(cls)
