[Python-Dev] Mini-Pep: An Empty String ABC (original) (raw)
Jim Jewett jimjjewett at gmail.com
Fri Jun 6 05:39:39 CEST 2008
- Previous message: [Python-Dev] PEP 8 vs PEP 371: Additional Discussion
- Next message: [Python-Dev] [Python-3000] How to specify keyword-only arguments from C?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
So, apart from compatibility purposes, what is the point currently of not directly subclassing str?
To provide your own storage format, such as a views into existing data.
Whether or not this is actually practical is a different question; plenty C code tends to assume it can use the internals of str directly, which breaks on even some subclasses.
-jJ
- Previous message: [Python-Dev] PEP 8 vs PEP 371: Additional Discussion
- Next message: [Python-Dev] [Python-3000] How to specify keyword-only arguments from C?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]