8000 tweak line continuation in cpuinfo (py37 win problem) by msarahan · Pull Request #316 · pydata/numexpr · GitHub
[go: up one dir, main page]

Skip to content

tweak line continuation in cpuinfo (py37 win problem) #316

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

Merged
merged 1 commit into from
Aug 30, 2018

Conversation

msarahan
Copy link
Contributor

These line continuation characters were tripping up python 3.7 on Windows (only this platform - mac and linux, as well as all other Python versions on Windows were fine. Go figure.

Also, this particular line seemed fishy:

   and (self.has_sse3() and not self.has_ssse3())

isn't that always false, by definition, because they can't both be true? I looked it up online, and nocona has sse3, so I tried to adjust the logic accordingly (keep just self.has_sse3).

@gdementen
Copy link
Contributor

Note the 3 s (ssse3) vs 2 s (sse3) ! I have not idea what ssse3 means, so I don't know if it makes any sense, but at least it is probably not always False.

@bashtage
Copy link

I think the extra s might matter:

https://en.wikipedia.org/wiki/SSSE3

@msarahan
Copy link
Contributor Author

ah! Sorry about that. I'll remove that part of the PR.

@msarahan
Copy link
Contributor Author

Reverted and left a comment there for future people like me

@robbmcleod
Copy link
Member

The file changes look fine to me. Not sure why Appveyor is showing a failure here since it doesn't on their own site.

This 2to3 LF bug is supposed to go away with CPython 3.7.1.

#305

python/cpython#6483

FYI I have looked at putting in workhorsey's cpuinfo instead but it breaks Python 2.6 compatibility so I didn't bother.

@robbmcleod
Copy link
Member

Merging, since there have been no further comments. I do think it's sensible that we wait for 3.7.1 to formally support Python 3.7 though.

@robbmcleod robbmcleod merged commit b693e94 into pydata:master Aug 30, 2018
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

Successfully merging this pull request may close these issues.

4 participants
0