Where is the documentation for ','?

Steve D'Aprano steve+python at pearwood.info
Sat Sep 17 02:39:26 EDT 2016


On Sat, 17 Sep 2016 12:05 pm, Peng Yu wrote:

> Hi,
> 
> I'm wondering where is the documentation for ',' as in the following
> usage.
> 
> x = 1
> y = 2
> x, y = y, x
> 
> I tried help(','). But there are too many ',' in it and I don't see in
> which section ',' is documented. Could anybody let me know? Thanks.


As well as the other suggestions you have been given, try "Sequence
Unpacking".



-- 
Steve
“Cheer up,” they said, “things could be worse.” So I cheered up, and sure
enough, things got worse.




More information about the Python-list mailing list