Firefox/Python 3 Migration: Difference between revisions

Jump to navigation Jump to search
(porting instruction updates)
(→‎Resources: wording)
Line 43: Line 43:
* [https://black.readthedocs.io/en/stable/index.html Black] can format Python 2 code and Python 3 code (but [https://black.readthedocs.io/en/stable/installation_and_usage.html it requires Py3.6+ to run]).
* [https://black.readthedocs.io/en/stable/index.html Black] can format Python 2 code and Python 3 code (but [https://black.readthedocs.io/en/stable/installation_and_usage.html it requires Py3.6+ to run]).


=== Resources ===
=== Porting Resources ===


[https://docs.python.org/3/howto/pyporting.html Porting Guide on python.org]
[https://docs.python.org/3/howto/pyporting.html Porting Guide on python.org]


[http://python-future.org/compatible_idioms.html Cheat Sheet: Writing Python 2-3 compatible code].  Note: misses some advanced changes, like porting __eq__() to __hash__() and changes to the slice interface.  
[http://python-future.org/compatible_idioms.html Cheat Sheet: Writing Python 2-3 compatible code].  Note: misses some advanced changes, like porting __eq__() to __hash__() and changes to the slice interface.


== References ==
== References ==
75

edits

Navigation menu