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

Python 3 problem with division #421

Closed
NJDFan opened this issue Aug 23, 2014 · 1 comment
Closed

Python 3 problem with division #421

NJDFan opened this issue Aug 23, 2014 · 1 comment

Comments

@NJDFan
Copy link

NJDFan commented Aug 23, 2014

All the other mathematical operators work fine in queries, but division doesn't. This is most likely because Python3 killed __div__ in favor of __truediv__ and __floordiv__.

After the line that reads::

__div__ = _e(OP_DIV)

I put::

__truediv__ = _e(OP_DIV)

And that seemed to fix it, but I'm not set up to run full regression tests on things.

@coleifer
Copy link
Owner

Thanks, good catch.

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

No branches or pull requests

2 participants