Where is the documentation for ','?

eryk sun eryksun at gmail.com
Sat Sep 17 01:24:13 EDT 2016


On Sat, Sep 17, 2016 at 2:05 AM, Peng Yu <pengyu.ut at gmail.com> wrote:
>
> 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.

See help('ASSIGNMENT') where the "target list is a comma-separated
list of targets". See also help('TUPLELITERALS') and
help('SEQUENCES').



More information about the Python-list mailing list