Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pythran cannot compile when print numpy.array #224

Closed
yuancheng-p opened this issue Mar 21, 2014 · 1 comment
Closed

Pythran cannot compile when print numpy.array #224

yuancheng-p opened this issue Mar 21, 2014 · 1 comment

Comments

@yuancheng-p
Copy link
Contributor

Compile error when printing arrays in some cases, this might

For example:

#pythran export foo()
import numpy as np

def foo():
    a = np.ones((6, 8))
    b = np.ones((2, 4))
    d = a[1:3, 4:] + b[:, :]
    print d

foo()

This is mainly due to temporary expressions generated in pythran.
To avoid this problem for the moment, we can print 2 times the same array.

@pbrunet pbrunet closed this as completed Mar 21, 2014
@pbrunet pbrunet reopened this Mar 21, 2014
@serge-sans-paille
Copy link
Owner

This has been fixed a long time ago. The attached code snippet works like a charm on master, I'm closing this BR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants