Merge lp://staging/~cjwatson/storm/py3-special-methods into lp://staging/storm
Proposed by
Colin Watson
Status: | Merged |
---|---|
Merged at revision: | 511 |
Proposed branch: | lp://staging/~cjwatson/storm/py3-special-methods |
Merge into: | lp://staging/storm |
Diff against target: |
46 lines (+8/-0) 3 files modified
storm/expr.py (+4/-0) storm/info.py (+2/-0) storm/references.py (+2/-0) |
To merge this branch: | bzr merge lp://staging/~cjwatson/storm/py3-special-methods |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Colin Watson (community) | Approve | ||
Review via email: mp+371166@code.staging.launchpad.net |
Commit message
Provide needed methods for python3.
Description of the change
When a class defined __eq__ it needs to define __hash__ to or else it will not be hashable.
Also, __div__ doesn't exist anymore in python3. Classes are supposed to implement both __floordiv__ and __truediv__ instead.
This is extracted from https:/
To post a comment you must log in.
I'll review this myself since I just extracted it from somebody else's MP.