[issue20415] Could method "isinstance" take a list as parameter?

2020-12-04 Thread Irit Katriel
Irit Katriel added the comment: Interesting discussion, and the reason seems to be here: https://mail.python.org/pipermail/python-ideas/2011-July/010642.html Lists need to be checked for cycles, tuples don't. -- nosy: +iritkatriel resolution: -> rejected stage: -> resolved status: o

[issue20415] Could method "isinstance" take a list as parameter?

2014-02-15 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue20415] Could method "isinstance" take a list as parameter?

2014-01-30 Thread Jakub Wilk
Changes by Jakub Wilk : -- nosy: +jwilk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue20415] Could method "isinstance" take a list as parameter?

2014-01-28 Thread Mark Dickinson
Mark Dickinson added the comment: See related discussion on python-ideas here: https://mail.python.org/pipermail/python-ideas/2011-July/010610.html -- nosy: +mark.dickinson ___ Python tracker _

[issue20415] Could method "isinstance" take a list as parameter?

2014-01-28 Thread Chen ZHANG
New submission from Chen ZHANG: Since the usage of isinstance could be "isinstance(1, (int, float))", I'm wondering why it doesn't accept "[int, float]", if I do so, it would raise TypeError saying "arg 2 must be a type or tuple of types". What's the difference in effect between a tuple and a