Yoann Vandoorselaere
92b88db7ab
Make __dict__ accessible for Python builtin classes
...
Attribute set within instance of a SWIG Python wrapped class are
stored in SwigPyObject->dict, which tp_dictoffset slot is pointing to.
However, SWIG wrapped classes did not have a __dict__ attribute.
Inheriting subclasses did not get the attribute either because the
SWIG wrapped classes initialize the tp_dictoffset slot:
From http://bugs.python.org/issue16272 :
"If a type defines a nonzero tp_dictoffset, that type is responsible for
defining a `__dict__` slot as part of the tp_getset structures. Failure to
do so will result in the dict being inaccessible from Python via
`obj.__dict__` from instances of the type or subtypes."
Provide a SwigPyObject_get___dict__() function to retrieve the dict
attribute or create it when it does not exist yet (it is normally
created when setting attribute set), and a PyGetSetDef entry pointing
to this function.
2015-04-11 02:05:06 +07:00
..
allegrocl.cxx
Eliminate needless casting away const from string constants
2014-04-30 12:00:23 +12:00
allocate.cxx
Eliminate needless casting away const from string constants
2014-04-30 12:00:23 +12:00
browser.cxx
Add lambda functions to the symbol tables and add ability to suppress lambda warnings.
2013-02-04 20:05:34 +00:00
cffi.cxx
Eliminate needless casting away const from string constants
2014-04-30 12:00:23 +12:00
chicken.cxx
Eliminate needless casting away const from string constants
2014-04-30 12:00:23 +12:00
clisp.cxx
Eliminate needless casting away const from string constants
2014-04-30 12:00:23 +12:00
contract.cxx
Cosmetics/code beautification of nested class support
2013-11-29 07:29:58 +00:00
csharp.cxx
Partial support for %constant and structs
2014-12-18 07:01:08 +00:00
d.cxx
Partial support for %constant and structs
2014-12-18 07:01:08 +00:00
directors.cxx
Add support for thread_local when specified with other legitimate storage class specifiers - extern and static
2013-02-08 06:36:39 +00:00
emit.cxx
Remove cvs/svn Id strings
2013-01-12 01:21:16 +00:00
go.cxx
Fix regression in introduced in merge of C++11 strongly typed enums support
2014-12-07 21:31:14 +00:00
guile.cxx
Fix regression in introduced in merge of C++11 strongly typed enums support
2014-12-07 21:31:14 +00:00
java.cxx
Partial support for %constant and structs
2014-12-18 07:01:08 +00:00
javascript.cxx
Fix function naming conflict with class overloads.
2014-06-06 18:24:22 +02:00
lang.cxx
Fix templated constructors regression
2014-12-09 23:48:37 +00:00
lua.cxx
Add c++11 strongly typed enum support for Lua
2014-11-28 07:47:45 +00:00
main.cxx
Provide -cppext as a general command line option
2015-01-08 10:54:37 +13:00
modula3.cxx
Partial support for %constant and structs
2014-12-18 07:01:08 +00:00
module.cxx
Remove cvs/svn Id strings
2013-01-12 01:21:16 +00:00
mzscheme.cxx
Eliminate needless casting away const from string constants
2014-04-30 12:00:23 +12:00
nested.cxx
%extend symbols for nested structs get into a wrong C symbol table
2014-05-28 22:15:50 +04:00
ocaml.cxx
Provide -cppext as a general command line option
2015-01-08 10:54:37 +13:00
octave.cxx
Updated usage string for -cppcast/-nocppcast in octave.cxx
2015-01-09 14:51:44 -05:00
overload.cxx
Removing obsolete debug code
2014-02-19 13:34:48 +04:00
perl5.cxx
Warning and error fixes for Solaris Sun Studio compiler
2015-01-27 19:30:24 +00:00
php.cxx
[PHP] When wrapping a returned resource as an object, check if all
2015-01-23 13:56:13 +13:00
pike.cxx
Eliminate needless casting away const from string constants
2014-04-30 12:00:23 +12:00
python.cxx
Make __dict__ accessible for Python builtin classes
2015-04-11 02:05:06 +07:00
r.cxx
Eliminate needless casting away const from string constants
2014-04-30 12:00:23 +12:00
README
File move
2002-12-03 20:33:35 +00:00
ruby.cxx
The kwargs feature no longer turns on compactdefaultargs for languages that don't support kwargs.
2014-10-21 07:34:51 +01:00
s-exp.cxx
Remove cvs/svn Id strings
2013-01-12 01:21:16 +00:00
scilab.cxx
Add missing SWIGSCILAB in wrappers and fix unions test for non-scilab languages
2015-01-26 21:03:45 +00:00
swigmain.cxx
Merge remote-tracking branch 'origin/master' into gsoc2012-scilab
2015-01-26 10:50:20 +01:00
swigmod.h
Merge branch 'alexey-pelykh-cpp11_strongly_typed_enums__direct_inject_in_java'
2014-11-21 07:34:12 +00:00
tcl8.cxx
Eliminate needless casting away const from string constants
2014-04-30 12:00:23 +12:00
typepass.cxx
obscure case workaround in std::set wrapper, where ignored type still need to be processed
2014-05-19 02:05:23 +04:00
uffi.cxx
Eliminate needless casting away const from string constants
2014-04-30 12:00:23 +12:00
utils.cxx
Remove cvs/svn Id strings
2013-01-12 01:21:16 +00:00
xml.cxx
Remove cvs/svn Id strings
2013-01-12 01:21:16 +00:00