-
Notifications
You must be signed in to change notification settings - Fork 10
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
Fix PrintHilbertSeries to also work in Python 2.x #93
Comments
I think it is impossible to write the exponent as a superscript in Python2, at least it does not work as in the code. Way out: make to_up dependent on the Python version (if possible) and use ^x in Python2. |
I have a hard time believing that it would be impossible to do it in Python 2. It might require different code, and it might be very difficult to impossible to write code which works simultaneously in Python 2 and 3 (at least w/o sacrificing code readability seriously; after all, one could always write out byte arrays with the required byte sequences). That said, I am also highly sceptical how useful this whole function is overall. It's a nice gimmick, but does it really belong into PyNormaliz? What about users whose terminal is not set to UTF (admittedly, that number might be small today, but I am just guessing here). |
No doubt, it is kind of a gimmick, but the data in the raw output format are often difficult to read. And I think there could be more such functions. We can of course replace the true exponents by numbers following ^. Then the problem is solved. |
Now also available in Python 2 with ^ instead of proper superscript. |
It raises an exception right now:
The text was updated successfully, but these errors were encountered: