Path #1578346 - Python exceptions fail
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9544 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
d6954fed07
commit
561f3cd3d7
1 changed files with 1 additions and 2 deletions
|
|
@ -2610,7 +2610,6 @@ public:
|
|||
if (str != NULL && Len(str))
|
||||
Printv(f_shadow, tab4, str, "\n", NIL);
|
||||
}
|
||||
if (!modern) {
|
||||
Printv(f_shadow, tab4, "__swig_setmethods__ = {}\n", NIL);
|
||||
if (Len(base_class)) {
|
||||
Printf(f_shadow, "%sfor _s in [%s]: __swig_setmethods__.update(_s.__swig_setmethods__)\n", tab4, base_class);
|
||||
|
|
@ -2628,7 +2627,7 @@ public:
|
|||
}
|
||||
|
||||
Printv(f_shadow, tab4, "__getattr__ = lambda self, name: _swig_getattr(self, ", class_name, ", name)\n", NIL);
|
||||
} else {
|
||||
if (modern) {
|
||||
Printv(f_shadow, tab4, "thisown = _swig_property(lambda x: x.this.own(), ", "lambda x, v: x.this.own(v), doc='The membership flag')\n", NIL);
|
||||
/* Add static attribute */
|
||||
if (GetFlag(n, "feature:python:nondynamic")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue