summaryrefslogtreecommitdiff
path: root/devdocs/python~3.12/howto%2Fcporting.html
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
committerCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
commit754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (patch)
treef1190704f78f04a2b0b4c977d20fe96a828377f1 /devdocs/python~3.12/howto%2Fcporting.html
new repository
Diffstat (limited to 'devdocs/python~3.12/howto%2Fcporting.html')
-rw-r--r--devdocs/python~3.12/howto%2Fcporting.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/devdocs/python~3.12/howto%2Fcporting.html b/devdocs/python~3.12/howto%2Fcporting.html
new file mode 100644
index 00000000..d7a23e4c
--- /dev/null
+++ b/devdocs/python~3.12/howto%2Fcporting.html
@@ -0,0 +1,6 @@
+ <span id="cporting-howto"></span><h1>Porting Extension Modules to Python 3</h1> <p>We recommend the following resources for porting extension modules to Python 3:</p> <ul class="simple"> <li>The <a class="reference external" href="http://python3porting.com/cextensions.html">Migrating C extensions</a> chapter from <em>Supporting Python 3: An in-depth guide</em>, a book on moving from Python 2 to Python 3 in general, guides the reader through porting an extension module.</li> <li>The <a class="reference external" href="https://py3c.readthedocs.io/en/latest/guide.html">Porting guide</a> from the <em>py3c</em> project provides opinionated suggestions with supporting code.</li> <li>The <a class="reference external" href="https://cython.org/">Cython</a> and <a class="reference external" href="https://cffi.readthedocs.io/en/latest/">CFFI</a> libraries offer abstractions over Python’s C API. Extensions generally need to be re-written to use one of them, but the library then handles differences between various Python versions and implementations.</li> </ul> <div class="_attribution">
+ <p class="_attribution-p">
+ &copy; 2001&ndash;2023 Python Software Foundation<br>Licensed under the PSF License.<br>
+ <a href="https://docs.python.org/3.12/howto/cporting.html" class="_attribution-link">https://docs.python.org/3.12/howto/cporting.html</a>
+ </p>
+</div>