[Python-ideas] Revisiting Immutable Mappings
boxed at killingar.net
Thu Oct 18 12:49:19 EDT 2018
>> 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)"
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas