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
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
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
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
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
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)
> --
>
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
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.
|
|
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
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
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
11 matches
Mail list logo