diff --git a/CHANGES.current b/CHANGES.current index 1a5a5d0a6..1de8dccab 100644 --- a/CHANGES.current +++ b/CHANGES.current @@ -7,6 +7,14 @@ the issue number to the end of the URL: https://github.com/swig/swig/issues/ Version 4.1.0 (in progress) =========================== +2022-03-23: wsfulton + [Python] #1779 The -py3 option is deprecated and now has no effect on the + code generated. Use of this option results in a deprecated warning. + The related SWIGPYTHON_PY3 macro that this option defined is no longer generated. + + Note that %pythonnondynamic feature generates a metaclass that works on both + Python 2 and Python 3. + 2022-03-21: wsfulton [Python] #1779 pyabc.i for abstract base classes now supports versions of Python prior to 3.3 by using the collection module for these older versions. diff --git a/Doc/Manual/Preprocessor.html b/Doc/Manual/Preprocessor.html index 3fa26120f..c5043aaed 100644 --- a/Doc/Manual/Preprocessor.html +++ b/Doc/Manual/Preprocessor.html @@ -169,7 +169,6 @@ SWIG_D_VERSION Unsigned integer target version when using D SWIGGO_CGO Defined when using Go for cgo SWIGGO_GCCGO Defined when using Go for gccgo SWIGGO_INTGO_SIZE Size of the Go type int when using Go (32 or 64) -SWIGPYTHON_PY3 Defined when using Python with -py3 SWIGPYTHON_BUILTIN Defined when using Python with -builtin SWIG_RUBY_AUTORENAME Defined when using Ruby with -autorename diff --git a/Doc/Manual/Python.html b/Doc/Manual/Python.html index 2ed0211cc..e2c9c8630 100644 --- a/Doc/Manual/Python.html +++ b/Doc/Manual/Python.html @@ -152,11 +152,6 @@ - -

-Caution: This chapter is under repair! -

-

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 -nortti Disable the use of the native C++ RTTI with directors -nothreads Disable thread support for the entire interface -olddefs Keep the old method definitions when using -fastproxy --py3 Generate code with Python 3 specific features and syntax -relativeimport Use relative Python imports -threads Add thread support for all the interface -O Enable the following optimization options: -fastdispatch -fastproxy -fvirtual @@ -6744,13 +6738,11 @@ to do this (remember you are now the Python importer) or use dynamic linking.

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 -py3 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. +

-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: