swig/Lib
William S Fulton 96fae38be2 Fix Python pickling and metaclass for builtin wrappers
The metaclass (SwigPyObjectType) for SWIG objects was not defined in
a way that let importlib successfully import the Python wrappers.
The pickle module failed because it couldn't determine what module the
SWIG wrapped objects are in.

I've changed the definition of SwigPyObjectType using more normal
builtin type definitions. There are still some open questions:
- None of the builtin types, like swig_static_var_getset_descriptor and
  SwigPyObject are added into any module. No call to PyModule_AddObject
  is made, so isinstance cannot be used for any wrapped type, all of
  which are derived from SwigPyObject.

Closes #808
2016-10-14 07:30:44 +01:00
..
allegrocl Merge branch 'master' into gsoc2009-matevz 2013-01-28 07:01:37 +00:00
cffi Merge branch 'master' into gsoc2009-matevz 2013-10-10 07:26:09 +01:00
chicken Fix assorted comment and documentation typos 2014-02-23 17:15:22 +13:00
clisp merge revisions 11872:11876 from trunk to gsoc2009-sploving branch - license changes 2010-03-06 01:19:37 +00:00
csharp Add <typeinfo> header for std::bad_cast 2016-09-17 13:24:32 +02:00
d Add <typeinfo> header for std::bad_cast 2016-09-17 13:24:32 +02:00
gcj Fix {python|perl5|ruby|tcl}/java examples 2014-05-02 21:44:42 +02:00
go Add <typeinfo> header for std::bad_cast 2016-09-17 13:24:32 +02:00
guile Fix missed files 2016-09-17 19:01:42 +02:00
java Add <typeinfo> header for std::bad_cast 2016-09-17 13:24:32 +02:00
javascript [Javascript] Fix SWIG_exception() macro (#792) 2016-09-17 17:29:42 +12:00
lua Add <typeinfo> header for std::bad_cast 2016-09-17 13:24:32 +02:00
modula3 Add rvalue reference typemaps 2013-01-24 20:27:28 +00:00
mzscheme Whitespace cleanup of all Makefiles* 2014-05-02 20:06:11 +02:00
ocaml Fix incorrect comments 2015-05-09 21:59:03 +12:00
octave UTL STL container descriptor checks 2016-07-28 22:51:29 +01:00
perl5 Fix unused warnings in perl wrappers 2016-05-28 09:59:16 +01:00
php [PHP] Fix "in" typemap for char INPUT[ANY] 2016-09-02 16:38:58 +12:00
pike Merge branch 'master' into gsoc2009-matevz 2013-10-10 07:26:09 +01:00
python Fix Python pickling and metaclass for builtin wrappers 2016-10-14 07:30:44 +01:00
r Writing R extensions says: 2016-08-05 15:46:14 +10:00
ruby UTL STL container descriptor checks 2016-07-28 22:51:29 +01:00
scilab scilab: add runtime function SWIG_Scilab_TypeQuery() checks runtime is initialized 2016-10-05 14:09:08 +02:00
std Add <typeinfo> header for std::bad_cast 2016-09-17 13:24:32 +02:00
tcl Don't use long long if it isn't available 2016-01-06 16:52:37 -05:00
typemaps Fix missed files 2016-09-17 19:01:42 +02:00
uffi merge revisions 11872:11876 from trunk to gsoc2009-sploving branch - license changes 2010-03-06 01:19:37 +00:00
xml delete the perl5 typemaps, ignored here 2006-01-05 19:34:51 +00:00
allkw.swg [Lua] Add keyword warnings for Lua keywords and Basic Functions. 2014-02-19 23:04:40 +13:00
attribute.i Fix %arg in Lib/attribute.i 2013-05-25 00:37:57 +01:00
carrays.i Initialise all newly created arrays in arrays.i library. 2015-07-30 20:41:15 +01:00
cdata.i Add support for cdata library for Java 2014-02-15 22:13:50 +00:00
cmalloc.i merge revisions 11872:11876 from trunk to gsoc2009-sploving branch - license changes 2010-03-06 01:19:37 +00:00
constraints.i merge revisions 11872:11876 from trunk to gsoc2009-sploving branch - license changes 2010-03-06 01:19:37 +00:00
cpointer.i Remove warning: 'self' is a ruby keyword, renaming to 'C_self' since improving autodoc for Ruby 2011-12-21 22:01:27 +00:00
cstring.i merge revisions 11872:11876 from trunk to gsoc2009-sploving branch - license changes 2010-03-06 01:19:37 +00:00
cwstring.i merge revisions 11872:11876 from trunk to gsoc2009-sploving branch - license changes 2010-03-06 01:19:37 +00:00
director_common.swg Create director_common.swg for language-indep code 2015-03-12 19:51:11 +13:00
exception.i Add <typeinfo> header for std::bad_cast 2016-09-17 13:24:32 +02:00
intrusive_ptr.i Convert to unix fileformat 2013-01-12 16:54:37 +00:00
inttypes.i Remove duplicate declarations of strtoimax and strtoumax in inttypes.i 2014-04-08 23:47:22 +01:00
linkruntime.c fix macro issue reported by Vladimir Menshakov 2006-04-10 19:00:44 +00:00
math.i merge revisions 11872:11876 from trunk to gsoc2009-sploving branch - license changes 2010-03-06 01:19:37 +00:00
pointer.i Update link to point to 3.0 docs 2015-01-08 11:16:48 +13:00
runtime.swg fix VC++ warning 2005-09-29 13:17:05 +00:00
shared_ptr.i Add further documentation/info on the smartptr feature to the shared_ptr library file 2016-09-30 18:43:49 +01:00
std_except.i Add <typeinfo> header for std::bad_cast 2016-09-17 13:24:32 +02:00
stdint.i merge revisions 11872:11876 from trunk to gsoc2009-sploving branch - license changes 2010-03-06 01:19:37 +00:00
stl.i merge revisions 11872:11876 from trunk to gsoc2009-sploving branch - license changes 2010-03-06 01:19:37 +00:00
swig.swg Add std::array container wrappers for Python 2015-11-17 07:27:48 +00:00
swigarch.i Typo fix in error messages from swigarch.i 2015-02-04 23:07:18 +00:00
swigerrors.swg Remove trailing spaces in the generated code. 2013-09-13 10:02:39 +02:00
swiginit.swg Eliminate "found" flag for simpler, clearer code 2015-01-24 15:12:29 +13:00
swiglabels.swg swiglabels.swg: added check if __GNUC__ is defined 2016-02-13 13:49:07 +01:00
swigrun.i merge revisions 11872:11876 from trunk to gsoc2009-sploving branch - license changes 2010-03-06 01:19:37 +00:00
swigrun.swg Remove gcc warnings when using -Wconversion. Right side of expressions are signed char. 2016-04-27 10:55:22 -04:00
swigwarnings.swg Rework std::initializer_list handling to warn about usage in any method, not just constructors. A typemap is used to issue the warning and can be overridden with user defined behaviour. 2013-02-04 20:03:22 +00:00
wchar.i merge revisions 11872:11876 from trunk to gsoc2009-sploving branch - license changes 2010-03-06 01:19:37 +00:00
windows.i merge revisions 11872:11876 from trunk to gsoc2009-sploving branch - license changes 2010-03-06 01:19:37 +00:00