Paul Boddie <[EMAIL PROTECTED]> wrote:
> However, this ambiguous usage of * and ** is one thing I don't recall
> appearing on any of the "Python warts" lists
It is true that the same punctuation character is used in more than one
context, but that is also true for many other punctuation character
Robert Dailey wrote:
> I noticed that the ** operator is used as the power operator, however
> I've seen it used when passing variables into a function.
Others have already pointed out the relevant documentation. However,
this ambiguous usage of * and ** is one thing I don't recall appearing
on an
On Jul 16, 10:40 am, Robert Dailey <[EMAIL PROTECTED]> wrote:
> I noticed that the ** operator is used as the power operator, however
> I've seen it used when passing variables into a function. For example,
> I was researching a way to combine dictionaries. I found that if you
> do this:
>
> a = {"
En Mon, 16 Jul 2007 14:40:14 -0300, Robert Dailey <[EMAIL PROTECTED]>
escribió:
> I noticed that the ** operator is used as the power operator, however
> I've seen it used when passing variables into a function. For example,
> I was researching a way to combine dictionaries. I found that if you
Robert Dailey <[EMAIL PROTECTED]> wrote:
> However, I have no idea what the
> ** operator is here. I know that when you specify ** as a parameter in
> a function definition, it represents a dictionary of parameters passed
> in. However, in this example it is NOT being used in a function
> definiti
Robert Dailey schrieb:
> I noticed that the ** operator is used as the power operator, however
> I've seen it used when passing variables into a function. For example,
> I was researching a way to combine dictionaries. I found that if you
> do this:
>
> a = {"t1":"a", "t2":"b"}
> b = {"t3":"c"}
>
I noticed that the ** operator is used as the power operator, however
I've seen it used when passing variables into a function. For example,
I was researching a way to combine dictionaries. I found that if you
do this:
a = {"t1":"a", "t2":"b"}
b = {"t3":"c"}
dict( a, **b )
This combines the two