[Tutor] comma in an assignment

Key, Gregory E (E S SF RNA FSF 1 C) gregory.key at siemens.com
Tue Oct 22 21:20:25 CEST 2013


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 for the use of intended recipients. The information contained herein may include trade secrets, protected health or personal information, privileged or otherwise confidential information. Unauthorized review, forwarding, printing, copying, distributing, or using such information is strictly prohibited and may be unlawful. If you are not an intended recipient, you are hereby notified that you received this email in error, and that any review, dissemination, distribution or copying of this email and any attachment is strictly prohibited. If you have received this email in error, please contact the sender and delete the message and any attachment from your system. Thank you for your cooperation
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20131022/8b7120b2/attachment.html>


More information about the Tutor mailing list