23 May
2013
23 May
'13
4:33 p.m.
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. -- Steven