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

Michael Foord fuzzyman at gmail.com
Thu Jul 7 01:06:45 CEST 2011


On 6 July 2011 17:55, Benjamin Peterson <benjamin at python.org> wrote:

> Michael Foord <fuzzyman at ...> writes:
>
> > It would feel cleaner to me if I could make FunctionTypes a set and use
> that
> as the second argument to isinstance.
>
> I just had a another thought about abritrary collections. It was explode
> loudly
> if you made an class.
>

Could you rephrase please? I have no idea what this means. :-)

All the best,

Michael Foord


>
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> 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/20110707/7eb75784/attachment.html>


More information about the Python-ideas mailing list