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

Fix #224, imath python code such that tests pass under python3 #477

Merged
merged 1 commit into from
Jul 22, 2019

Conversation

kdt3rd
Copy link
Contributor

@kdt3rd kdt3rd commented Jul 22, 2019

Previously had fixed print functions, this pass converts the following:

  • integer division changed in python3 3/2 -> 1.5, have to use 3//2 to
    get an int
  • xrange is no more, just use range
  • integer type coersion for division not working, force type constructor

Signed-off-by: Kimball Thurston kdt3rd@gmail.com

…pass under python3

Previously had fixed print functions, this pass converts the following:
- integer division changed in python3 3/2 -> 1.5, have to use 3//2 to
get an int
- xrange is no more, just use range
- integer type coersion for division not working, force type constructor

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
@kdt3rd kdt3rd merged commit ab50d77 into AcademySoftwareFoundation:master Jul 22, 2019
@kdt3rd kdt3rd deleted the fix_python3_tests branch July 22, 2019 20:48
@cary-ilm cary-ilm added this to the v2.4.0 milestone Aug 10, 2019
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.

None yet

3 participants