[Python-ideas] Revisiting Immutable Mappings
Anders Hovmöller
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)"
/ Anders
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20181018/d7cf2456/attachment.html>
More information about the Python-ideas
mailing list