[Python-ideas] Allow isinstance second argument to be a set of types

Masklinn masklinn at masklinn.net
Tue Jul 5 10:33:45 CEST 2011


On 2011-07-05, at 10:14 , Stefan Behnel wrote:
> 
> Yes, that's more or less what I wrote in the next sentence, right the first one that you discarded. ;)
Not quite. Your next sentence talks about tuples of tuples, but the nesting is entirely arbitrary. Talking about tuples of tuples is way simplifying what's truly accepted by `isinstance`.


More information about the Python-ideas mailing list