News for hackers. Stuff that matters.
Re:Pythran: Crossing the Python Frontier [pdf] by quietbritishjim on Tuesday April 24, 2018 @12:22PM (#16913987)
Or just len(x). This works perfectly well on numpy arrays and has the bonus that it works on regular lists/tuples of floats, so the first snippet doesn't rely on numpy.

There are no comments on this comment yet.