On 2013/01/08 6:47 AM, Varoquaux wrote:
> In examples/pylab_examples/triinterp_demo.py:
>
>> @@ -0,0 +1,36 @@
>> +"""
>> +Interpolation from triangular grid to quad grid.
>> +"""
>> +import matplotlib.pyplot as plt
>> +import matplotlib.tri as mtri
>> +import numpy as np
>> +import math
>> +
>> +
>> +# Create triangulation.
>> +x = np.asarray([0, 1, 2, 3, 0.5, 1.5, 2.5, 1, 2, 1.5])
>> +y = np.asarray([0, 0, 0, 0, 1,   1,   1,   2, 2, 3])
>> +triangles = [[0,1,4], [1,2,5], [2,3,6], [1,5,4], [2,6,5], [4,5,7], [5,6,8],
>
> I don't have to use the pep8 tool to see this isn't pep8. I prefer |z =
> np.cos(1.5 * x) * np.cos(1.5 * y)| above |z = np.cos(1.5*x)*np.cos(1.5*y)|

Nelle, please look at the examples below the lines in PEP 8 that Ian 
quoted.  They make it perfectly clear that PEP 8 does not mandate spaces 
around binary operators.  Personally, in this case I think the most 
readable option would be to put spaces only around the middle operator. 
  The goal is clarity and readability, which sometimes requires 
judgement.  There is no such thing as "strict PEP 8 compliance"; it is 
an oxymoron.

Eric