Changes between Version 4 and Version 5 of Plan/Python3
- Timestamp:
- 10/26/2016 09:10:14 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Plan/Python3
v4 v5 14 14 15 15 == Twisted == 16 Deluge relies on all dependant packages supporting Python 3 with twisted being the most crucial. At the time of writing there is minimal Python 3 support in Twisted >= 12.3 but work is still ongoing: [https://twistedmatrix.com/trac/wiki/Plan/Python3 Twisted Python 3 Plan].16 Deluge relies on all dependant packages supporting Python 3 with Twisted being the most crucial and support is just about complete: [https://twistedmatrix.com/trac/wiki/Plan/Python3 Twisted Python 3 Plan]. 17 17 18 18 Another option for Twisted is to remove the use of it in favour of Python 3's [https://docs.python.org/dev/library/asyncio.html asyncio]. This would, of course, remove backwards compatibility with Python 2 and require a lot of work to port to asyncio, but could be worthwhile in the end. … … 20 20 == 2to3 == 21 21 22 Although `2to3` will highlight areas requiring changes it cannot be relied upon to make the correct decisions especially concerting bytes and unicode strings so do not commit code changes generated by it. 23 24 Also see a wrapper to `2to3` called `python-modernize` or `python-futurize`. 22 Using [http://python-future.org/ python-future] is the best option to convert the code. 25 23 26 24 == Required changes == … … 42 40 == Compatibility Module == 43 41 44 It will be easier and simpler to use either `future` , `six` or `pies` to enable writingcompatible code.42 It will be easier and simpler to use either `future` or `six` (see [http://python-future.org/faq.html#what-is-the-relationship-between-future-and-six py-future] docs) to write compatible code. 45 43 46 44