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

Michael Foord fuzzyman at gmail.com
Mon Jul 4 16:35:55 CEST 2011


On 4 July 2011 08:02, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:

> Michael Foord wrote:
>
>  It would feel cleaner to me if I could make FunctionTypes a set and use
>> that as the second argument to isinstance. :-)
>>
>
> Or more generally, any iterable object?
>

I don't care about any iterable. If a set would work then I'd be happy. :-)

Michael


>
> --
> Greg
>
> ______________________________**_________________
> Python-ideas mailing list
> Python-ideas at python.org
> http://mail.python.org/**mailman/listinfo/python-ideas<http://mail.python.org/mailman/listinfo/python-ideas>
>



-- 

http://www.voidspace.org.uk/

May you do good and not evil
May you find forgiveness for yourself and forgive others
May you share freely, never taking more than you give.
-- the sqlite blessing http://www.sqlite.org/different.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20110704/a7359787/attachment.html>


More information about the Python-ideas mailing list