[Python-ideas] PEP 3151 - Reworking the OS and IO exception hierarchy (again)
solipsis at pitrou.net
Thu Nov 11 14:58:08 CET 2010
Le jeudi 11 novembre 2010 à 23:50 +1000, Nick Coghlan a écrit :
> Perhaps the better approach would be to explicitly list out the
> exceptions being merged in the compatibility section and state which
> case applies:
> "Code that cares should already be checking the errno attribute":
> socket.error, OSError, WindowsError, VMSError
> "Already cannot be reliably handled distinct from IOError due to the
> way the affected modules are implemented": mmap.error, select.error
> Then we can state that any exception clause which changes scope due to
> the new merger into IOError was already broken and we're just slightly
> changing exactly how it is broken.
Ok, I will look at that.
> That said, didn't we originally punt on this PEP for 3.2 due to the
> moratorium rather than due to any lack of time to get it done?
I myself thought that the moratorium would get in the way, but Georg
asked me if it could be implemented in time for 3.2, which is why I'm
bringing it here.
Getting a pronouncement would be good anyway.
More information about the Python-ideas