[Python-Dev] PEP 409 and the stdlib (original) (raw)
Steven D'Aprano steve at pearwood.info
Fri May 24 00:33:08 CEST 2013
- Previous message: [Python-Dev] PEP 409 and the stdlib
- Next message: [Python-Dev] PEP 409 and the stdlib
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] PEP 409 and the stdlib
- Next message: [Python-Dev] PEP 409 and the stdlib
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]