Ticket #22 (accepted task)

Opened 2 years ago

Last modified 3 months ago

Python 3 compatibility

Reported by: menno Owned by: menno
Priority: major Milestone: 0.9
Version: Keywords:
Cc:

Description

Check what breaks.
What can be done to take advantage of Python 3?

Change History

Changed 2 years ago by menno

 http://stackoverflow.com/questions/455717/python-3-development-and-distribution-challenges

Good advice from Mark Hammond who has already had an initial stab at this:

  • Change setup.py so it automatically executes the 2to3 tool over the code as 'setup.py install' is run.
  • Change almost all literal strings to become 'byte strings' in a 2 and 3 compatible way. The simplest way to do this was to use (say) "foo".encode("ascii") - in that case the literal string "foo" becomes a str object on py2k and a bytes object on py3k, and given all literals are ascii chars, the hard-coding of 'ascii' is reasonable.


  • A few other misc conversions between bytes and strings.

Changed 2 years ago by menno

  • milestone set to 0.7

Changed 19 months ago by menno

Consider using something like tox to test with different Python versions.

 http://codespeak.net/tox

Changed 12 months ago by menno

  • owner set to menno
  • status changed from new to accepted

Changed 12 months ago by menno

Document how Python3 support and testing works (eg. tox).

Changed 3 months ago by menno

  • milestone changed from 0.8 to 0.9
Note: See TracTickets for help on using tickets.