x, = y (???)

kj socyl at 987jk.com.invalid
Thu Jul 17 21:11:36 CEST 2008

I just came across an assignment of the form

  x, = y

where y is a string (in case it matters).

1. What's the meaning of the comma in the LHS of the assignment?
2. How could I have found this out on my own?

(Regarding (2) above, I consulted the index of several Python
reference books but I could not find the answer to (1).  I hope to
find a better Python reference!)



NOTE: In my address everything before the first period is backwards;
and the last period, and everything after it, should be discarded.

More information about the Python-list mailing list