On Tue, Oct 22, 2013 at 9:50 PM, Steven D'Aprano wrote:
> However, there does have to be the same number of items on both sides:
>
> py> a, b, c = "xy"
> Traceback (most recent call last):
> File "", line 1, in
> ValueError: need more than 2 values to unpack
3.x extends sequence unpacking to s
On Tue, Oct 22, 2013 at 07:20:25PM +, Key, Gregory E (E S SF RNA FSF 1 C)
wrote:
> I understand that a comma in Python is a separator and not an
> operator. In some of the MatPlotLib examples I see code like this:
>
> line1, = ax1.plot(t, y1, lw=2, color='red', label='1 HZ')
>
> What does
On Tue, Oct 22, 2013 at 3:20 PM, Key, Gregory E (E S SF RNA FSF 1 C)
wrote:
> I understand that a comma in Python is a separator and not an operator. In
The comma operator creates a tuple. It has low precedence, so you
usually need parentheses. But sometimes the parentheses are redundant
such as
On 22/10/13 20:20, Key, Gregory E (E S SF RNA FSF 1 C) wrote:
I understand that a comma in Python is a separator and not an operator.
In some of the MatPlotLib examples I see code like this:
line1, = ax1.plot(t, y1, lw=2, color='red', label='1 HZ')
What does the comma do in an assignment statemen
I understand that a comma in Python is a separator and not an operator. In some
of the MatPlotLib examples I see code like this:
line1, = ax1.plot(t, y1, lw=2, color='red', label='1 HZ')
What does the comma do in an assignment statement?
Greg Key
This message and any attachments are solely fo