Re: Where is the documentation for ','?

2016-09-17 Thread Steve D'Aprano
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

Re: Where is the documentation for ','?

2016-09-16 Thread eryk sun
On Sat, Sep 17, 2016 at 2:05 AM, Peng Yu 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

Re: Where is the documentation for ','?

2016-09-16 Thread Terry Reedy
On 9/16/2016 10: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. It should

Re: Where is the documentation for ','?

2016-09-16 Thread Ben Finney
Peng Yu writes: > help(tuple) gives me this Yes. That's the API definition for the ‘tuple’ type. You were advised to search the documentation, not the interactive help. You'll find the descriptions of “tuple” and even “tuple unpacking” are what you want. -- \ “When

Re: Where is the documentation for ','?

2016-09-16 Thread Nathan Ernst
The grammar and what it represents is defined at https://docs.python.org/3/reference/expressions.html#expression-lists Regards On Sep 16, 2016 9:59 PM, "Peng Yu" wrote: > OK. But it is documented somewhere in python doc? > > On Fri, Sep 16, 2016 at 9:48 PM, Lawrence

Re: Where is the documentation for ','?

2016-09-16 Thread Peng Yu
OK. But it is documented somewhere in python doc? On Fri, Sep 16, 2016 at 9:48 PM, Lawrence D’Oliveiro wrote: > On Saturday, September 17, 2016 at 2:05:49 PM UTC+12, Peng Yu wrote: >> x, y = y, x > > It’s just syntactic sugar for > > (x, y) = (y, x) > -- >

Re: Where is the documentation for ','?

2016-09-16 Thread Lawrence D’Oliveiro
On Saturday, September 17, 2016 at 2:05:49 PM UTC+12, Peng Yu wrote: > x, y = y, x It’s just syntactic sugar for (x, y) = (y, x) -- https://mail.python.org/mailman/listinfo/python-list

Re: Where is the documentation for ','?

2016-09-16 Thread Peng Yu
help(tuple) gives me this, which does not mention ',' either. Help on class tuple in module __builtin__: class tuple(object) | tuple() -> empty tuple | tuple(iterable) -> tuple initialized from iterable's items | | If the argument is a tuple, the return value is the same object. | |

Re: Where is the documentation for ','?

2016-09-16 Thread MRAB
On 2016-09-17 03:05, 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. Search for

Re: Where is the documentation for psycopg2?

2008-07-29 Thread Matthew Woodcraft
kj [EMAIL PROTECTED] wrote: Hi. I can't find any documentation for psycopg2. I'm a noob, so I'm sure I'm just not looking in the right place... Anybody know where it is? For basic use, psycopg2 follows the dbapi, which is described in http://www.python.org/dev/peps/pep-0249/ Additional

Re: Where is the documentation for psycopg2?

2008-07-29 Thread kj
In [EMAIL PROTECTED] Matthew Woodcraft [EMAIL PROTECTED] writes: kj [EMAIL PROTECTED] wrote: Hi. I can't find any documentation for psycopg2. I'm a noob, so I'm sure I'm just not looking in the right place... Anybody know where it is? For basic use, psycopg2 follows the dbapi, which is