Changes between and of Initial VersionVersion 5Ticket #6053
- Timestamp:
- 10/05/2012 12:50:10 PM (8 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #6053
- Property summary changed from Create `toBytes` function for Python 3 compatibility with Python 2 to Create `intToBytes` function for Python 3 compatibility with Python 2
- Property keywords review added
- Property branch changed from to branches/toBytes-py3-6053
- Property branch_author changed from to itamarst
- Property owner changed from itamar to exarkun
-
Ticket #6053 – description
initial v5 6 6 }}} 7 7 8 On Python 3 that will not work. Since we use the above idiom quite a bit, at the very least in tests, we should implement a ` toBytes` function that emulates its behavior, i.e. relies on `__str__`.8 On Python 3 that will not work. Since we use the above idiom quite a bit, at the very least in tests, we should implement a `intToBytes` function that emulates this behavior.
