5 May
2007
5 May
'07
4:25 p.m.
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