Pythran still misbehaves with the code below:
self[0] is initializes as a (1,1) array, then when an attempt is made to give it a shape of (100,100) this fails.
# pythran export test()
import numpy as np
def A():
self_xx = np.zeros((1,1))
self = tuple([self_xx])
return self
def B(self, D, C):
print(D, C)
self[0] = np.zeros((D, C))
print('self[0]', self[0].shape)
def test():
fr = A()
B(fr, 100, 100)
Pythran still misbehaves with the code below:
self[0] is initializes as a (1,1) array, then when an attempt is made to give it a shape of (100,100) this fails.