Repository navigation
Fix units examples under python3 - #3838
Conversation
|
Added a change to make sure the the whole multiplies of pi are rendered as integers in python3 as in python2 by doing integer division. With this change the result of running the examples with python3 looks identical to what is in the current docs. |
|
Reading this I am not convinced that this is the proper use of overloading |
bef672b to
2121e2f
Compare
|
@jenshnielsen How do you exercise the problem? |
|
I was trying to build the docs with python3. That mostly works apart from the unit examples and I agree that this is not really the right solution but I haven't had the time to dive into fixing this probably. This is no worse off than it was in the latest release (docs build has never fully worked with python3 as far as I know) so I don't think it needs to be blocker for the next release. |
Fix units examples under python3
Fix units examples under python3
|
Backported to v1.5.x in 72c2503 |
Seems like passing additional arguments to object.new is no longer supported. AFAIK these would previously just have been dropped anyway so I have removed them but I would like some input from someone who understands the python metaclasses better than me.