The Py2JsResult type is incorrect, it should actually be `any`. Strictly
speaking, `any` except it won't be `null`. But I am not sure
that "anything except for null" provides extra value of "any" .

For backwards compatibility, we still `export type Py2JsResult = any;`
Remove Py2JsResult. The Py2JsResult type is incorrect, it should actually be `any`. Strictly
speaking, `any` except it won't be `null`. But I am not sure
that "anything except for null" provides extra value of "any" .

For backwards compatibility, we still `export type Py2JsResult = any;`
# http://stackoverflow.com/questions/16541618/perform-a-reverse-cumulative-sum-on-a-numpy-array
# pythran export reverse_cumsum(float[])
# setup: import numpy as np ; r = np.random.rand(1000000)
# run: reverse_cumsum(r)
import numpy as np


def reverse_cumsum(x):
    return np.cumsum(x[::-1])[::-1]

# http://stackoverflow.com/questions/16541618/perform-a-reverse-cumulative-sum-on-a-numpy-array
# pythran export reverse_cumsum(float[])
# setup: import numpy as np ; r = np.random.rand(1000000)
# run: reverse_cumsum(r)
import numpy as np


def reverse_cumsum(x):
    return np.cumsum(x[::-1])[::-1]
