Differences between revisions 3 and 10 (spanning 7 versions)
Revision 3 as of 2016-08-25 18:25:37
Size: 615
Editor: SamatJain
Comment:
Revision 10 as of 2019-01-24 08:19:30
Size: 1779
Editor: SamatJain
Comment: Section on porting Python 2 → Python 3
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## page was renamed from Python
[[CodingStyle/Python]] is another relevant page.
Line 9: Line 12:
python-wheel
Line 13: Line 15:
== cffi == == cffi and numpy ==
Line 15: Line 17:
https://github.com/SimonSapin/azureblur/tree/master/azureblur https://github.com/SimonSapin/azureblur/tree/master/azureblur: Example of using cffi to interact w/ a C++ class.
Line 20: Line 22:

== Neat Web frameworks ==

[[http://aspen.io|aspen.io]]. Filesystem-based dispatch library. Used by Liberapay.

== Neat packages ==

[[https://github.com/nvbn/py-backwards|nvbn/py-backwards]]: Python transcompiler. Lets you use Python 3.6 features in older versions, as old as Python 2.7.

== Compilers ==

[[http://nuitka.net/|Nuitka]]: Python native-code compiler, binary will still link to libpython.

== Porting projects from Python 2 to Python 3 ==

=== Libraries ===

 * [[http://python-future.org/|python-future]]
 * [[https://pythonhosted.org/six/|six]], along with [[https://python-modernize.readthedocs.io/|python-modernize]]

=== Guides ===

 * [[https://portingguide.readthedocs.io/en/latest/index.html|The Conservative Python 3 Porting Guide]]
 * [[https://docs.python.org/3/howto/pyporting.html|Porting Python 2 Code to Python 3]]

=== Notes ===

 * [[https://docs.python.org/3/howto/sorting.html#the-old-way-using-the-cmp-parameter|Sorting and using Python 3.2's funcutils.cmp_to_key()]]

CodingStyle/Python is another relevant page.

Development packages for Debian

Current for Ubuntu 16.04.

fabric
python-pip
python3-pip
python-wheel-common

cffi and numpy

https://github.com/SimonSapin/azureblur/tree/master/azureblur: Example of using cffi to interact w/ a C++ class.

python - How do I convert a numpy ND-array to a CFFI C++ array and back again? - Stack Overflow

python - Why is cffi so much quicker than numpy? - Stack Overflow

Neat Web frameworks

aspen.io. Filesystem-based dispatch library. Used by Liberapay.

Neat packages

nvbn/py-backwards: Python transcompiler. Lets you use Python 3.6 features in older versions, as old as Python 2.7.

Compilers

Nuitka: Python native-code compiler, binary will still link to libpython.

Porting projects from Python 2 to Python 3

Libraries

Guides

Notes

SamatsWiki: ProgrammingLanguages/Python (last edited 2021-04-09 17:46:53 by SamatJain)