Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #85213

Re: meaning of: line, =

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!lightspeed.eweka.nl!lightspeed.eweka.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <kirotawa@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.072
X-Spam-Evidence '*H*': 0.86; '*S*': 0.00; 'explanation': 0.09; 'cc:addr:python-list': 0.11; 'ast': 0.16; 'comma': 0.16; 'command:': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'feb': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'skip:- 40': 0.29; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'url:python': 0.33; 'blog:': 0.33; 'received:google.com': 0.35; 'there': 0.35; 'url:listinfo': 0.36; 'thanks': 0.36; 'url:org': 0.36; 'pm,': 0.38; 'url:mail': 0.40; 'here:': 0.62; "you'll": 0.62; 'dont': 0.67; 'line,': 0.68; 'saw': 0.77; '2015': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=dpfpsRdSFlA1fg1ZWMAeZC73pclgI5q088gj+Ee6aAw=; b=zA7b83QVaE2AnmjKwTztnzTSqwiN9lsXq5yEgCXjVLZPSvEro6xkMrRuPkRfeWJbzW i1rAInmb30w69rnGtppR9wwOos1EP6O5vnPInAELZkEuO6EgF1lP3441Q609Qpkqdq8R gJZgfHndfpK6zgstR1QHUKWD6bDYiouhyFUrLhtmhpbBE1016IxHgnyInZDJtze0Uk4y UVIoVYbQ1sjiIfsEQ6XTr8aLpUCLSuNonaWSgalMSpkMT1kiBRDePpSgELdxA385qC8y DL0scyC6gL0nR616SgibAmX0Z6PijjbdVmsgNq4jKL8tUe07FpDh2pcxsfaOtwlswXyf YzFw==
X-Received by 10.236.201.10 with SMTP id a10mr12863285yho.9.1423059770687; Wed, 04 Feb 2015 06:22:50 -0800 (PST)
MIME-Version 1.0
In-Reply-To <54d227ef$0$3292$426a74cc@news.free.fr>
References <54d227ef$0$3292$426a74cc@news.free.fr>
From leo kirotawa <kirotawa@gmail.com>
Date Wed, 4 Feb 2015 12:22:30 -0200
Subject Re: meaning of: line, =
To ast <nomail@invalid.com>
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.18461.1423059773.18130.python-list@python.org> (permalink)
Lines 30
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1423059773 news.xs4all.nl 2877 [2001:888:2000:d::a6]:33777
X-Complaints-To abuse@xs4all.nl
X-Received-Bytes 3683
X-Received-Body-CRC 750233753
Xref csiph.com comp.lang.python:85213

Show key headers only | View raw


You'll find some explanation here:
http://stackoverflow.com/questions/1708292/meaning-of-using-commas-and-underscores-with-python-assignment-operator

On Wed, Feb 4, 2015 at 12:08 PM, ast <nomail@invalid.com> wrote:
> hello
>
> I dont understand why there is a comma just after line in the following
> command:
>
> line, = plt.plot(x, np.sin(x), '--', linewidth=2)
>
>
> I never saw that before
>
> Found here:
> http://matplotlib.org/examples/lines_bars_and_markers/line_demo_dash_control.html
>
> thanks
> --
> https://mail.python.org/mailman/listinfo/python-list



-- 

----------------------------------------------
LeƓnidas S. Barbosa (Kirotawa)
blog: corecode.wordpress.com

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

meaning of:  line, = "ast" <nomail@invalid.com> - 2015-02-04 15:08 +0100
  Re: meaning of: line, = leo kirotawa <kirotawa@gmail.com> - 2015-02-04 12:22 -0200
  Re: meaning of: line, = Chris Angelico <rosuav@gmail.com> - 2015-02-05 01:24 +1100
  Re: meaning of:  line, = "ast" <nomail@invalid.com> - 2015-02-05 09:28 +0100

csiph-web