[issue12029] Allow catching virtual subclasses in except clauses

2022-02-07 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks you. I think it's reasonable to reject the feature request and instead update the docs, so let's do that. -- ___ Python tracker

[issue12029] Allow catching virtual subclasses in except clauses

2022-02-07 Thread Irit Katriel
Irit Katriel added the comment: To summarise the discussion so far: The arguments in favour of changing exception matching to match on virtual base classes are: 1. It is confusing that it doesn't follow issubclass semantics. 2. Two use cases were presented as practical motivation. - one

[issue12029] Allow catching virtual subclasses in except clauses

2022-02-07 Thread Michael McCoy
Michael McCoy added the comment: Checking my comment history here, a past me was terribly bad at linking the correct PR on github.This is the correct link: https://github.com/python/cpython/pull/6461 On Mon, Feb 7, 2022 at 10:12 AM Guido van Rossum wrote: > > Guido van Rossum added the

[issue12029] Allow catching virtual subclasses in except clauses

2022-02-07 Thread Guido van Rossum
Guido van Rossum added the comment: Fixing the version field. Since it's a feature, this could not go into any version before 3.11. Maybe Irit can look through the discussion and patch and see if there's value to doing this? (Feel free to decline!) -- nosy: +iritkatriel versions:

[issue12029] Allow catching virtual subclasses in except clauses

2022-02-07 Thread Václav Dvořák
Change by Václav Dvořák : -- versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12029] Allow catching virtual subclasses in except clauses

2022-02-07 Thread Václav Dvořák
Change by Václav Dvořák : -- nosy: +Václav Dvořák ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12029] Allow catching virtual subclasses in except clauses

2020-07-02 Thread Simon Charette
Change by Simon Charette : -- nosy: +charettes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12029] Allow catching virtual subclasses in except clauses

2018-05-31 Thread Eric Snow
Change by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12029] Allow catching virtual subclasses in except clauses

2018-04-13 Thread Michael McCoy
Michael McCoy added the comment: Sorry, my last message referred to Github PR6460 / pull_request6160. -- versions: +Python 3.4, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker

[issue12029] Allow catching virtual subclasses in except clauses

2018-04-13 Thread Michael McCoy
Michael McCoy added the comment: Amalgamating the patch history here, I've updated the tests on Github (PR6160) to include tests for both the recursive case and ensure the correct error is propagated up if an exception occurs during the subclass check. I've also

[issue12029] Allow catching virtual subclasses in except clauses

2018-04-13 Thread Antony Lee
Change by Antony Lee : -- nosy: -Antony.Lee ___ Python tracker ___ ___

[issue12029] Allow catching virtual subclasses in except clauses

2018-04-13 Thread Michael McCoy
Change by Michael McCoy : -- pull_requests: +6160 ___ Python tracker ___ ___

[issue12029] Allow catching virtual subclasses in except clauses

2018-04-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Silencing exceptions like MemoryError, RecursionError or KeyboardInterrupt and returning a lying result doesn't look like a good idea to me. These exceptions can be raised in virtually any code for causes not related to executed

[issue12029] Allow catching virtual subclasses in except clauses

2016-08-24 Thread ppperry
Changes by ppperry : -- title: Catching virtual subclasses in except clauses -> Allow catching virtual subclasses in except clauses ___ Python tracker