Changes between Version 4 and Version 5 of Plan/Python3


Ignore:
Timestamp:
10/26/2016 09:10:14 AM (7 years ago)
Author:
Cas
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Plan/Python3

    v4 v5  
    1414 
    1515== 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]. 
     16Deluge 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]. 
    1717 
    1818Another 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. 
     
    2020== 2to3 == 
    2121 
    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`. 
     22Using [http://python-future.org/ python-future] is the best option to convert the code. 
    2523 
    2624== Required changes == 
     
    4240== Compatibility Module == 
    4341 
    44 It will be easier and simpler to use either `future`, `six` or `pies` to enable writing compatible code. 
     42It 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. 
    4543 
    4644