[issue17157] issubclass() should accept iterables in 2nd arg

2020-11-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: except ... is another instance of (exception) class or tuple of classes. -- ___ Python tracker ___ __

[issue17157] issubclass() should accept iterables in 2nd arg

2020-11-16 Thread Irit Katriel
Irit Katriel added the comment: Good discussion. There seems to be agreement that this should not be done. -- nosy: +iritkatriel resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue17157] issubclass() should accept iterables in 2nd arg

2013-02-09 Thread Franck Michea
Franck Michea added the comment: I am neutral on this too, it just felt odd and this is why the question raised. Yesterday I tried to add sequences and iterables (only to issubclass but indeed it would need better testing and all) and came to a problem with sequences. The current implementatio

[issue17157] issubclass() should accept iterables in 2nd arg

2013-02-09 Thread Ramchandra Apte
Ramchandra Apte added the comment: Just so you know, I'm neutral on this idea. I think it should at least accept sequences though. -- ___ Python tracker ___

[issue17157] issubclass() should accept iterables in 2nd arg

2013-02-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Given isxxx(src, target_s), the proposal would seem to be to change the internal test "type(target_s) is tuple" to "hasattr(type(target_s), '__iter__'). This depends on metaclasses not having .__iter__ methods, just as type does not. However, a subclass of typ

[issue17157] issubclass() should accept iterables in 2nd arg

2013-02-08 Thread Mark Dickinson
Mark Dickinson added the comment: What's the use case for this? issubclass already accept tuples, just like isinstance: >>> issubclass(bool, (int, float)) True -- nosy: +mark.dickinson versions: -Python 3.3 ___ Python tracker

[issue17157] issubclass() should accept iterables in 2nd arg

2013-02-08 Thread Ramchandra Apte
Changes by Ramchandra Apte : -- status: languishing -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue17157] issubclass() should accept iterables in 2nd arg

2013-02-08 Thread Ramchandra Apte
Changes by Ramchandra Apte : -- status: open -> languishing ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue17157] issubclass() should accept iterables in 2nd arg

2013-02-08 Thread Ramchandra Apte
Changes by Ramchandra Apte : -- title: issubclass should accept iterables -> issubclass() should accept iterables in 2nd arg ___ Python tracker ___ _

[issue17157] issubclass should accept iterables

2013-02-08 Thread Ramchandra Apte
New submission from Ramchandra Apte: kushou pointed this out on #python-dev -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue17157] issubclass should accept iterables

2013-02-08 Thread Ramchandra Apte
Changes by Ramchandra Apte : -- components: +Interpreter Core ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue17157] issubclass should accept iterables

2013-02-08 Thread Ramchandra Apte
Changes by Ramchandra Apte : -- nosy: kushou, ramchandra.apte priority: normal severity: normal status: open title: issubclass should accept iterables type: enhancement versions: Python 3.3, Python 3.4 ___ Python tracker