[Python-ideas] PEP-3151 pattern-matching

Georg Brandl g.brandl at gmx.net
Fri May 13 07:07:56 CEST 2011


On 12.05.2011 23:17, Antoine Pitrou wrote:
> On Thu, 12 May 2011 22:15:07 +0200
> Georg Brandl <g.brandl at gmx.net> wrote:
>> 
>> But the str() looks correct to me as well (for an exception that doesn't
>> derive from EnvironmentError).
> 
> It's technically correct, sure. The point is that "technically correct"
> translates to "humanly bogus" here, because of the broken I/O
> exception hierarchy.

Yep, and I'm all for fixing it with PEP 3151 :)

Georg




More information about the Python-ideas mailing list