>> Even though, it would be the same as issubclass() (though I'd like an AND
>> relationship with the tuple of ABCs..)
>
> When "hasinterface" ANDs the tuple, it's already different, isn't it?
>
If it's AND, shouldn't it be "hasinterfaces" (notice the s!)?
One could also imagine that isinstance and issubclass taking a keyword argument
for the logical operator. Maybe just something as simple as "isinstance(foo,
(a, b), all=True)"
/ Anders
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/