[Python-Dev] Iterable String Redux (aka String ABC) (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Mon Jun 2 03:16:03 CEST 2008
- Previous message: [Python-Dev] Iterable String Redux (aka String ABC)
- Next message: [Python-Dev] [Python-3000] Finishing up PEP 3108
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Guido van Rossum wrote:
There are quite a few core APIs that accept no substitutes, and being an instance of basestring was intended to guarantee that a value is accepted by such APIs.
In that case, the idea of a user-defined string class that doesn't inherit from str or unicode seems to be a lost cause, since it will never be acceptable in those places, whatever is done with ABCs.
-- Greg
- Previous message: [Python-Dev] Iterable String Redux (aka String ABC)
- Next message: [Python-Dev] [Python-3000] Finishing up PEP 3108
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]