x, = ... - ¿Es esta coma final el operador de coma?

No entiendo que hace coma despues de variablelíneas, medio:http://matplotlib.org/examples/animation/simple_anim.html

line, = ax.plot(x, np.sin(x))

Si elimino la coma y la variable "línea", se convierte en variable "línea", entonces el programa se interrumpe. Código completo de url dado arriba:

import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation

fig = plt.figure()
ax = fig.add_subplot(111)

x = np.arange(0, 2*np.pi, 0.01)        # x-array
line, = ax.plot(x, np.sin(x))

def animate(i):
    line.set_ydata(np.sin(x+i/10.0))  # update the data
    return line,

#Init only required for blitting to give a clean slate.
def init():
    line.set_ydata(np.ma.array(x, mask=True))
    return line,

ani = animation.FuncAnimation(fig, animate, np.arange(1, 200), init_func=init,
    interval=25, blit=True)
plt.show()

De acuerdo ahttp://docs.python.org/3/tutorial/datastructures.html#tuples-and-sequences La coma después de la variable parece estar relacionada con tuplas que contienen solo un elemento.

Respuestas a la pregunta(2)

Su respuesta a la pregunta