[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


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



More information about the Python-Dev mailing list