Message273436
This question came up again recently over in #27814, in the context of a proposal to add an "unless" parameter to contextlib.suppress(). I declined the RFE mainly on the basis of API complexity, but I also noted you can get something comparable in the current API by using virtual subclassing to say "If a subclass of these, but not of these": http://bugs.python.org/issue27814#msg273434
So the status quo is currently giving us a slightly odd discrepancy between normal except clauses and code that emulates them via issubclass() |
|
Date |
User |
Action |
Args |
2016-08-23 12:11:58 | ncoghlan | set | recipients:
+ ncoghlan, gvanrossum, barry, georg.brandl, jamesh, pitrou, fijal, benjamin.peterson, jwilk, eric.araujo, alex, r.david.murray, Trundle, cvrebert, daniel.urban, yorik.sar, Yury.Selivanov, martin.panter, Jim.Jewett, gcbirzan, Antony.Lee, josh.r |
2016-08-23 12:11:58 | ncoghlan | set | messageid: <1471954318.68.0.947147190073.issue12029@psf.upfronthosting.co.za> |
2016-08-23 12:11:58 | ncoghlan | link | issue12029 messages |
2016-08-23 12:11:58 | ncoghlan | create | |
|