[Python-Dev] [Python-checkins] cpython: quote the type name for improved readability (original) (raw)
"Martin v. Löwis" martin at v.loewis.de
Wed Nov 9 22:10:54 CET 2011
- Previous message: [Python-Dev] [Python-checkins] cpython: quote the type name for improved readability
- Next message: [Python-Dev] ctypes: alignment of (simple) types
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I recommend reverting the change. I fail to see why quoting the name improves readability. It does if the name is "Throatwobbler Mangrove".
But that can't be - the type name ought to be an identifier, so it can't have spaces. It might be possible to create deliberately confusing error messages, though, such as
py> class your:pass ... py> next(your()) Traceback (most recent call last): File "", line 1, in TypeError: your object is not an iterator
Regards, Martin
- Previous message: [Python-Dev] [Python-checkins] cpython: quote the type name for improved readability
- Next message: [Python-Dev] ctypes: alignment of (simple) types
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]