Changes between and of Initial VersionVersion 5Ticket #6053

Show
Ignore:
Timestamp:
10/05/2012 12:50:10 PM (8 months ago)
Author:
itamar
Comment:

I've decided to just make intToBytes.

 http://buildbot.twistedmatrix.com/boxes-supported?branch=/branches/toBytes-py3-6053 is a new run.

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  
    66}}} 
    77 
    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__`. 
     8On 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.