You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While I can see reasons for it, it's counterintuitive that adding 1 to a Byte would make it a float rather than a Byte one increment higher. This limits the use cases the library can be utilized. My expectation is if the other value for math operations is not a bitmath type, it should be converted to the bitmath type it is being combined with before the math operation is performed.
How to REPRODUCE the issue:
>>> bitmath.Byte(1) + 1
2.0
How REPRODUCIBLE (every time? intermittently? only in certain environments?):
Always
What you EXPECTED to happen:
>>> bitmath.Byte(1) + 1
Byte(2.0)
VERSION of bitmath effected (git hashes are OK). Did you install from RPM, PyPi, source?
While I can see reasons for it, it's counterintuitive that adding 1 to a Byte would make it a float rather than a Byte one increment higher. This limits the use cases the library can be utilized. My expectation is if the other value for math operations is not a bitmath type, it should be converted to the bitmath type it is being combined with before the math operation is performed.
How to REPRODUCE the issue:
How REPRODUCIBLE (every time? intermittently? only in certain environments?):
Always
What you EXPECTED to happen:
VERSION of bitmath effected (git hashes are OK). Did you install from RPM, PyPi, source?
Your OPERATING SYSTEM and the affected PYTHON VERSION:
Fedora 32
Python 3.8.5
The text was updated successfully, but these errors were encountered: