Changes between Version 2 and Version 3 of Plan/Python3


Ignore:
Timestamp:
10/24/2016 08:41:59 PM (8 years ago)
Author:
Cas
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Plan/Python3

    v2 v3  
    2121Although `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. 
    2222 
    23 Also see a wrapper to `2to3` called `python-modernize`. 
     23Also see a wrapper to `2to3` called `python-modernize` or `python-futurize`. 
    2424 
    2525== Required changes == 
    2626 
    27  * Change setup.py from `setuptools` to `distribute` 
    2827 * Magic Method `__cmp__` in `common.py` replaced with `__lt__` 
    29  * Found at least one instance of raise with three args in Blocklist plugin 
    30  * peerguardian.py in Blocklist plugin - Rename `next()` to `__next__()` and add `next = __next__` to class 
    3128 * `iteritems()` where needed replace with try/except: http://python3porting.com/differences.html#dictionary-methods 
    3229 
     
    4441== Compatibility Module == 
    4542 
    46 It will be easier and simpler to use either `six` or `pies` to enable writing compatible code. 
     43It will be easier and simpler to use either `future`, `six` or `pies` to enable writing compatible code. 
    4744 
    4845