[Python-Dev] PEP 409 and the stdlib
steve at pearwood.info
Fri May 24 00:33:08 CEST 2013
On 24/05/13 00:24, Ethan Furman wrote:
> Here's the code that existed at one point:
> for c in s:
> val = _b32rev.get(c)
> if val is None:
> raise TypeError('Non-base32 digit found')
> Even though there is no KeyError to convert in this incarnation, providing the cause of failure is still appreciated by the user who's trying to figure out what, exactly, went wrong.
For the record, that is the implementation used in Python 3.3.0rc3, so "at some point" is actually very recently.
More information about the Python-Dev