parent
df86fbc54e
commit
a343b7e254
6 changed files with 24 additions and 41 deletions
|
|
@ -152,11 +152,6 @@
|
|||
<!-- INDEX -->
|
||||
|
||||
|
||||
|
||||
<p>
|
||||
<b>Caution: This chapter is under repair!</b>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
This chapter describes SWIG's support of Python. SWIG is compatible
|
||||
with all recent Python versions (Python 2.7 and Python >= 3.2). If you
|
||||
|
|
@ -967,7 +962,6 @@ swig -python -help
|
|||
<tr><td>-nortti </td><td>Disable the use of the native C++ RTTI with directors</td></tr>
|
||||
<tr><td>-nothreads </td><td>Disable thread support for the entire interface</td></tr>
|
||||
<tr><td>-olddefs </td><td>Keep the old method definitions when using -fastproxy</td></tr>
|
||||
<tr><td>-py3 </td><td>Generate code with Python 3 specific features and syntax</td></tr>
|
||||
<tr><td>-relativeimport </td><td>Use relative Python imports</td></tr>
|
||||
<tr><td>-threads </td><td>Add thread support for all the interface</td></tr>
|
||||
<tr><td>-O </td><td>Enable the following optimization options: -fastdispatch -fastproxy -fvirtual</td></tr>
|
||||
|
|
@ -6744,13 +6738,11 @@ to do this (remember you are now the Python importer) or use dynamic linking.
|
|||
|
||||
<p>
|
||||
SWIG is able to support Python 3.x. The wrapper code generated by
|
||||
SWIG can be compiled with both Python 2.x or 3.x. Further more, by
|
||||
passing the <tt>-py3</tt> command line option to SWIG, wrapper code
|
||||
with some Python 3 specific features can be generated (see below
|
||||
subsections for details of these features).
|
||||
SWIG can be compiled with both Python 2.x or 3.x.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
There is a list of known-to-be-broken features in Python 3:
|
||||
The list of known-to-be-broken features around Python 3 are:
|
||||
</p>
|
||||
<ul>
|
||||
<li>No more support for FILE* typemaps, because PyFile_AsFile has been dropped
|
||||
|
|
@ -6875,7 +6867,7 @@ class V(object):
|
|||
|
||||
<p>
|
||||
<b>Compatibility Note:</b> SWIG-4.1.0 changed the way that function annotations are generated.
|
||||
Prior versions required the <tt>-py3</tt> option to generate function annotation support
|
||||
Prior versions required the (now removed) <tt>-py3</tt> option to generate function annotation support
|
||||
containing C/C++ types instead of supporting <tt>%feature("python:annotations", "c")</tt>.
|
||||
Variable annotations were also added in SWIG-4.1.0.
|
||||
</p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue