def fromname(cls, name): """Create _ASN1Object from short name, long name or OID """ return super().__new__(cls, *_txt2obj(name, name=True))
def __new__(cls, oid): return super().__new__(cls, *_txt2obj(oid, name=False))
def __new__(cls, oid): return super(_ASN1Object, cls).__new__(cls, *_txt2obj(oid, name=False))