Closed tomschr closed 8 years ago
Some float() casts remain, where FloatObjects need to perform math. (Especially those locations mentioned in https://github.com/jnweiger/pdfcompare/issues/5#issue-25096186 above. :unamused: ) Some int() casts added, where an integer division result is expected.
Not sure if this helps, but importing future can be useful, especially if you want to omit casting with float() as seen in https://github.com/jnweiger/pdfcompare/blob/master/pdfcompare.py#L235
Here is an example:
For more information, see http://www.python.org/dev/peps/pep-0238/