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

__truediv__ is broken for num / bm #2

tbielawa opened this Issue Mar 30, 2014 · 0 comments


None yet
1 participant
Copy link

tbielawa commented Mar 30, 2014

ERROR: truediv: number / bitmath = number
Traceback (most recent call last):
  File "/home/tbielawa/Projects/bitmath/tests/", line 61, in test_number_div_bitmath_is_number
    result = num1 / bm1
TypeError: unsupported operand type(s) for /: 'int' and 'KiB'

Ran 3 tests in 0.001s

FAILED (errors=1)

However, bm / bm and bm / num work properly.

@tbielawa tbielawa added the bug label Mar 30, 2014

@tbielawa tbielawa added the tests label Jul 13, 2014

@tbielawa tbielawa closed this in fa02807 Jul 29, 2014

tbielawa added a commit that referenced this issue Jul 29, 2014

Python 3.3 support
Thanks to @davidfischer-ch for the PR

Closes #2
Closes #5

Now supports proper __truediv__ in 2.x and 3.x for num/bm and num/bm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment