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

Syntax error with python 2.6 #19

Closed
timeu opened this issue Jul 20, 2012 · 1 comment
Closed

Syntax error with python 2.6 #19

timeu opened this issue Jul 20, 2012 · 1 comment

Comments

@timeu
Copy link

timeu commented Jul 20, 2012

Currently there is an error in :
/scikits/cuda/misc.py:686

Dict comprehjensions are not only supported from 2.7 on, which causes an syntax error for this line in Python 2.6:
num_nbytes = {np.dtype(t):t(1).nbytes for t in num_types}

Replacing it with this one, fixes the issue:

num_nbytes = dict((np.dtype(t),t(1).nbytes) for t in num_types)

@lebedov
Copy link
Owner

lebedov commented Jul 20, 2012

Fixed - thanks for catching this.

@lebedov lebedov closed this as completed Jul 20, 2012
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

2 participants