swig/Examples/python
William S Fulton 03323f5c8b The Python module import logic has changed to stop obfuscating real ImportError problems.
Only one import of the low-level C/C++ module from the pure Python module is
attempted now. Previously a second import of the low-level C/C++ module was attempted
after an ImportError occurred and was done to support 'split modules'. A 'split module' is
a configuration where the pure Python module is a module within a Python package and the
low-level C/C++ module is a global Python module. Now a 'split module' configuration is
no longer supported by default. This configuration can be supported with a simple
customization, such as:

  %module(package="mypackage", moduleimport="import $module") foo

or if using -builtin:

  %module(package="mypackage", moduleimport="from $module import *") foo

instead of

  %module(package="mypackage") foo

See the updated Python chapter titled "Location of modules" in the documentation.

Closes #848 #1343
2018-12-16 16:41:39 +00:00
..
callback Remove use of preinst-swig script 2015-08-21 22:43:17 +01:00
class Fix some typos in docs and examples and make the code look nicer. 2016-12-31 23:06:56 +08:00
constants Fix some typos in docs and examples and make the code look nicer. 2016-12-31 23:06:56 +08:00
contract Remove use of preinst-swig script 2015-08-21 22:43:17 +01:00
docstrings Remove use of preinst-swig script 2015-08-21 22:43:17 +01:00
doxygen Add Python doxygen example 2018-05-31 20:48:02 +01:00
enum Fix some typos in docs and examples and make the code look nicer. 2016-12-31 23:06:56 +08:00
exception Examples update to support C++17: exception specification throw removal 2018-05-04 20:02:13 +01:00
exceptproxy Drop support for Python classic classes 2018-10-12 07:10:47 +01:00
extend Remove random statement glued onto comment line 2017-07-28 09:37:41 +12:00
funcptr Fix some typos in docs and examples and make the code look nicer. 2016-12-31 23:06:56 +08:00
funcptr2 Remove use of preinst-swig script 2015-08-21 22:43:17 +01:00
functor Remove use of preinst-swig script 2015-08-21 22:43:17 +01:00
import Remove use of preinst-swig script 2015-08-21 22:43:17 +01:00
import_packages The Python module import logic has changed to stop obfuscating real ImportError problems. 2018-12-16 16:41:39 +00:00
import_template Remove use of preinst-swig script 2015-08-21 22:43:17 +01:00
libffi Correct docs and examples to call SWIG_fail after setting a Python error 2016-10-23 20:16:35 +01:00
multimap Add missing checks for failures in calls to PyUnicode_AsUTF8String. 2017-12-04 20:14:04 +00:00
operator Fix operator Python example for -builtin 2018-11-28 08:18:28 +00:00
performance Remove use of preinst-swig script 2015-08-21 22:43:17 +01:00
pointer Fix some typos in docs and examples and make the code look nicer. 2016-12-31 23:06:56 +08:00
reference Fix some typos in docs and examples and make the code look nicer. 2016-12-31 23:06:56 +08:00
simple Fix some typos in docs and examples and make the code look nicer. 2016-12-31 23:06:56 +08:00
smartptr Remove use of preinst-swig script 2015-08-21 22:43:17 +01:00
std_map Remove use of preinst-swig script 2015-08-21 22:43:17 +01:00
std_vector Remove use of preinst-swig script 2015-08-21 22:43:17 +01:00
template Remove use of preinst-swig script 2015-08-21 22:43:17 +01:00
varargs Remove use of preinst-swig script 2015-08-21 22:43:17 +01:00
variables Misc. typos 2018-05-17 10:04:23 -04:00
check.list Revert "Temporarily remove Python import_packages testcase" 2018-12-06 06:55:24 +00:00
index.html Update one dead link and remove another 2014-02-24 10:11:11 +13:00