autopep8 cleanup of Examples/python whitespace
automated cleanup only of the Examples/python example code
This commit is contained in:
parent
9086eb351c
commit
7770715457
40 changed files with 264 additions and 323 deletions
|
|
@ -4,13 +4,13 @@ import example
|
|||
|
||||
# Call average with a Python list...
|
||||
|
||||
print example.average([1,2,3,4])
|
||||
print example.average([1, 2, 3, 4])
|
||||
|
||||
# ... or a wrapped std::vector<int>
|
||||
|
||||
v = example.IntVector(4)
|
||||
for i in range(len(v)):
|
||||
v[i] = i+1
|
||||
v[i] = i + 1
|
||||
print example.average(v)
|
||||
|
||||
|
||||
|
|
@ -22,8 +22,8 @@ print example.half((1.0, 1.5, 2.0, 2.5, 3.0))
|
|||
# ... or a wrapped std::vector<double>
|
||||
|
||||
v = example.DoubleVector()
|
||||
for i in [1,2,3,4]:
|
||||
v.append(i)
|
||||
for i in [1, 2, 3, 4]:
|
||||
v.append(i)
|
||||
print example.half(v)
|
||||
|
||||
|
||||
|
|
@ -31,6 +31,5 @@ print example.half(v)
|
|||
|
||||
example.halve_in_place(v)
|
||||
for i in range(len(v)):
|
||||
print v[i], "; ",
|
||||
print v[i], "; ",
|
||||
print
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue