[Python-3000] sets in P3K?

skip at pobox.com skip at pobox.com
Fri Apr 28 04:11:05 CEST 2006


    Barry> x = 1, 2, 3
    Barry> x = (1, 2, 3)

    Barry> So let's keep the first and hijack the second to be set
    Barry> constructor notation.

This is a fairly common error:

    x = 1,

For that reason I prefer to always use parens for tuple literals.

Skip


More information about the Python-3000 mailing list