[Python-Dev] Changing string constants to byte arrays in Py3k (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Sun May 6 01:25:26 CEST 2007
- Previous message: [Python-Dev] Changing string constants to byte arrays in Py3k
- Next message: [Python-Dev] Byte literals (was Re: [Python-checkins] Changing string constants to byte arrays ( r55119 - in python/branches/py3k-struni/Lib: codecs.py test/test_codecs.py ))
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Steven Bethard wrote:
Does that mean you want list literals to be immutable too?
There are no "list literals" in Python, only expressions that construct lists.
You might argue that b"abc" is not a literal either, but an expression that constructs a bytes object. However, it looks so much like a string literal that this would be a difficult distinction to keep in mind, and very likely to trip people up.
-- Greg
- Previous message: [Python-Dev] Changing string constants to byte arrays in Py3k
- Next message: [Python-Dev] Byte literals (was Re: [Python-checkins] Changing string constants to byte arrays ( r55119 - in python/branches/py3k-struni/Lib: codecs.py test/test_codecs.py ))
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]