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


Groups > comp.lang.python > #85213

Re: meaning of: line, =

References <54d227ef$0$3292$426a74cc@news.free.fr>
From leo kirotawa <kirotawa@gmail.com>
Date 2015-02-04 12:22 -0200
Subject Re: meaning of: line, =
Newsgroups comp.lang.python
Message-ID <mailman.18461.1423059773.18130.python-list@python.org> (permalink)

Show all headers | 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