Changes between and of Initial VersionVersion 5Ticket #6053


Ignore:
Timestamp:
10/05/2012 10:50:10 AM (22 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 Owner changed from itamar to exarkun
    • Property Branch changed from to branches/toBytes-py3-6053
    • Property Author changed from to itamarst
    • Property Keywords review added
  • 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.