one-element tuples [Was: Most probably a stupid question, but I still want to ask]

Stephen Hansen me+python at ixokai.io
Sun Apr 10 20:19:48 EDT 2016


On Sun, Apr 10, 2016, at 05:18 PM, Stephen Hansen wrote:
> The parens are optional, I always put them in because:
> >>> b = "hello",

Ahem, "because its easy to miss the trailing comma" is what I meant to
say here.



More information about the Python-list mailing list