~laney/ubuntu/quantal/swig2.0/guile-2.0

« back to all changes in this revision

Viewing changes to debian/patches/debian-changes-2.0.1-2

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Landschoff
  • Date: 2010-12-23 00:06:42 UTC
  • Revision ID: james.westby@ubuntu.com-20101223000642-d7et39qi1o5gc4wt
Tags: 2.0.1-2
debian/control: Fix build dependency on pcre3 which should be available on
mips, mipsel and m68k as well.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Upstream changes introduced in version 2.0.1-2
 
2
 This patch has been created by dpkg-source during the package build.
 
3
 Here's the last changelog entry, hopefully it gives details on why
 
4
 those changes were made:
 
5
 .
 
6
 swig2.0 (2.0.1-2) unstable; urgency=low
 
7
 .
 
8
   * debian/control: Fix build dependency on pcre3 which should be available on
 
9
     mips, mipsel and m68k as well.
 
10
 .
 
11
 The person named in the Author field signed this changelog entry.
 
12
Author: Torsten Landschoff <torsten@debian.org>
 
13
 
 
14
---
 
15
The information above should follow the Patch Tagging Guidelines, please
 
16
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
 
17
are templates for supplementary fields that you might want to add:
 
18
 
 
19
Origin: <vendor|upstream|other>, <url of original patch>
 
20
Bug: <url in upstream bugtracker>
 
21
Bug-Debian: http://bugs.debian.org/<bugnumber>
 
22
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
 
23
Forwarded: <no|not-needed|url proving that it has been forwarded>
 
24
Reviewed-By: <name and email of someone who approved the patch>
 
25
Last-Update: <YYYY-MM-DD>
 
26
 
 
27
--- /dev/null
 
28
+++ swig2.0-2.0.1/Examples/test-suite/python/clientdata_prop_a.py
 
29
@@ -0,0 +1,98 @@
 
30
+# This file was automatically generated by SWIG (http://www.swig.org).
 
31
+# Version 2.0.1
 
32
+#
 
33
+# Do not make changes to this file unless you know what you are doing--modify
 
34
+# the SWIG interface file instead.
 
35
+# This file is compatible with both classic and new-style classes.
 
36
+
 
37
+from sys import version_info
 
38
+if version_info >= (2,6,0):
 
39
+    def swig_import_helper():
 
40
+        from os.path import dirname
 
41
+        import imp
 
42
+        fp = None
 
43
+        try:
 
44
+            fp, pathname, description = imp.find_module('_clientdata_prop_a', [dirname(__file__)])
 
45
+        except ImportError:
 
46
+            import _clientdata_prop_a
 
47
+            return _clientdata_prop_a
 
48
+        if fp is not None:
 
49
+            try:
 
50
+                _mod = imp.load_module('_clientdata_prop_a', fp, pathname, description)
 
51
+            finally:
 
52
+                fp.close()
 
53
+            return _mod
 
54
+    _clientdata_prop_a = swig_import_helper()
 
55
+    del swig_import_helper
 
56
+else:
 
57
+    import _clientdata_prop_a
 
58
+del version_info
 
59
+try:
 
60
+    _swig_property = property
 
61
+except NameError:
 
62
+    pass # Python < 2.2 doesn't have 'property'.
 
63
+def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
 
64
+    if (name == "thisown"): return self.this.own(value)
 
65
+    if (name == "this"):
 
66
+        if type(value).__name__ == 'SwigPyObject':
 
67
+            self.__dict__[name] = value
 
68
+            return
 
69
+    method = class_type.__swig_setmethods__.get(name,None)
 
70
+    if method: return method(self,value)
 
71
+    if (not static) or hasattr(self,name):
 
72
+        self.__dict__[name] = value
 
73
+    else:
 
74
+        raise AttributeError("You cannot add attributes to %s" % self)
 
75
+
 
76
+def _swig_setattr(self,class_type,name,value):
 
77
+    return _swig_setattr_nondynamic(self,class_type,name,value,0)
 
78
+
 
79
+def _swig_getattr(self,class_type,name):
 
80
+    if (name == "thisown"): return self.this.own()
 
81
+    method = class_type.__swig_getmethods__.get(name,None)
 
82
+    if method: return method(self)
 
83
+    raise AttributeError(name)
 
84
+
 
85
+def _swig_repr(self):
 
86
+    try: strthis = "proxy of " + self.this.__repr__()
 
87
+    except: strthis = ""
 
88
+    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
 
89
+
 
90
+try:
 
91
+    _object = object
 
92
+    _newclass = 1
 
93
+except AttributeError:
 
94
+    class _object : pass
 
95
+    _newclass = 0
 
96
+
 
97
+
 
98
+class A(_object):
 
99
+    __swig_setmethods__ = {}
 
100
+    __setattr__ = lambda self, name, value: _swig_setattr(self, A, name, value)
 
101
+    __swig_getmethods__ = {}
 
102
+    __getattr__ = lambda self, name: _swig_getattr(self, A, name)
 
103
+    __repr__ = _swig_repr
 
104
+    def fA(self): return _clientdata_prop_a.A_fA(self)
 
105
+    def __init__(self): 
 
106
+        this = _clientdata_prop_a.new_A()
 
107
+        try: self.this.append(this)
 
108
+        except: self.this = this
 
109
+    __swig_destroy__ = _clientdata_prop_a.delete_A
 
110
+    __del__ = lambda self : None;
 
111
+A_swigregister = _clientdata_prop_a.A_swigregister
 
112
+A_swigregister(A)
 
113
+
 
114
+
 
115
+def test_A(*args):
 
116
+  return _clientdata_prop_a.test_A(*args)
 
117
+test_A = _clientdata_prop_a.test_A
 
118
+
 
119
+def test_tA(*args):
 
120
+  return _clientdata_prop_a.test_tA(*args)
 
121
+test_tA = _clientdata_prop_a.test_tA
 
122
+
 
123
+def new_tA():
 
124
+  return _clientdata_prop_a.new_tA()
 
125
+new_tA = _clientdata_prop_a.new_tA
 
126
+
 
127
+
 
128
--- /dev/null
 
129
+++ swig2.0-2.0.1/Examples/test-suite/python/clientdata_prop_b.py
 
130
@@ -0,0 +1,169 @@
 
131
+# This file was automatically generated by SWIG (http://www.swig.org).
 
132
+# Version 2.0.1
 
133
+#
 
134
+# Do not make changes to this file unless you know what you are doing--modify
 
135
+# the SWIG interface file instead.
 
136
+# This file is compatible with both classic and new-style classes.
 
137
+
 
138
+from sys import version_info
 
139
+if version_info >= (2,6,0):
 
140
+    def swig_import_helper():
 
141
+        from os.path import dirname
 
142
+        import imp
 
143
+        fp = None
 
144
+        try:
 
145
+            fp, pathname, description = imp.find_module('_clientdata_prop_b', [dirname(__file__)])
 
146
+        except ImportError:
 
147
+            import _clientdata_prop_b
 
148
+            return _clientdata_prop_b
 
149
+        if fp is not None:
 
150
+            try:
 
151
+                _mod = imp.load_module('_clientdata_prop_b', fp, pathname, description)
 
152
+            finally:
 
153
+                fp.close()
 
154
+            return _mod
 
155
+    _clientdata_prop_b = swig_import_helper()
 
156
+    del swig_import_helper
 
157
+else:
 
158
+    import _clientdata_prop_b
 
159
+del version_info
 
160
+try:
 
161
+    _swig_property = property
 
162
+except NameError:
 
163
+    pass # Python < 2.2 doesn't have 'property'.
 
164
+def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
 
165
+    if (name == "thisown"): return self.this.own(value)
 
166
+    if (name == "this"):
 
167
+        if type(value).__name__ == 'SwigPyObject':
 
168
+            self.__dict__[name] = value
 
169
+            return
 
170
+    method = class_type.__swig_setmethods__.get(name,None)
 
171
+    if method: return method(self,value)
 
172
+    if (not static) or hasattr(self,name):
 
173
+        self.__dict__[name] = value
 
174
+    else:
 
175
+        raise AttributeError("You cannot add attributes to %s" % self)
 
176
+
 
177
+def _swig_setattr(self,class_type,name,value):
 
178
+    return _swig_setattr_nondynamic(self,class_type,name,value,0)
 
179
+
 
180
+def _swig_getattr(self,class_type,name):
 
181
+    if (name == "thisown"): return self.this.own()
 
182
+    method = class_type.__swig_getmethods__.get(name,None)
 
183
+    if method: return method(self)
 
184
+    raise AttributeError(name)
 
185
+
 
186
+def _swig_repr(self):
 
187
+    try: strthis = "proxy of " + self.this.__repr__()
 
188
+    except: strthis = ""
 
189
+    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
 
190
+
 
191
+try:
 
192
+    _object = object
 
193
+    _newclass = 1
 
194
+except AttributeError:
 
195
+    class _object : pass
 
196
+    _newclass = 0
 
197
+
 
198
+
 
199
+import clientdata_prop_a
 
200
+class B(clientdata_prop_a.A):
 
201
+    __swig_setmethods__ = {}
 
202
+    for _s in [clientdata_prop_a.A]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
 
203
+    __setattr__ = lambda self, name, value: _swig_setattr(self, B, name, value)
 
204
+    __swig_getmethods__ = {}
 
205
+    for _s in [clientdata_prop_a.A]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
 
206
+    __getattr__ = lambda self, name: _swig_getattr(self, B, name)
 
207
+    __repr__ = _swig_repr
 
208
+    def fB(self): return _clientdata_prop_b.B_fB(self)
 
209
+    def __init__(self): 
 
210
+        this = _clientdata_prop_b.new_B()
 
211
+        try: self.this.append(this)
 
212
+        except: self.this = this
 
213
+    __swig_destroy__ = _clientdata_prop_b.delete_B
 
214
+    __del__ = lambda self : None;
 
215
+B_swigregister = _clientdata_prop_b.B_swigregister
 
216
+B_swigregister(B)
 
217
+
 
218
+class C(clientdata_prop_a.A):
 
219
+    __swig_setmethods__ = {}
 
220
+    for _s in [clientdata_prop_a.A]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
 
221
+    __setattr__ = lambda self, name, value: _swig_setattr(self, C, name, value)
 
222
+    __swig_getmethods__ = {}
 
223
+    for _s in [clientdata_prop_a.A]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
 
224
+    __getattr__ = lambda self, name: _swig_getattr(self, C, name)
 
225
+    __repr__ = _swig_repr
 
226
+    def fC(self): return _clientdata_prop_b.C_fC(self)
 
227
+    def __init__(self): 
 
228
+        this = _clientdata_prop_b.new_C()
 
229
+        try: self.this.append(this)
 
230
+        except: self.this = this
 
231
+    __swig_destroy__ = _clientdata_prop_b.delete_C
 
232
+    __del__ = lambda self : None;
 
233
+C_swigregister = _clientdata_prop_b.C_swigregister
 
234
+C_swigregister(C)
 
235
+
 
236
+class D(clientdata_prop_a.A):
 
237
+    __swig_setmethods__ = {}
 
238
+    for _s in [clientdata_prop_a.A]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
 
239
+    __setattr__ = lambda self, name, value: _swig_setattr(self, D, name, value)
 
240
+    __swig_getmethods__ = {}
 
241
+    for _s in [clientdata_prop_a.A]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
 
242
+    __getattr__ = lambda self, name: _swig_getattr(self, D, name)
 
243
+    __repr__ = _swig_repr
 
244
+    def fD(self): return _clientdata_prop_b.D_fD(self)
 
245
+    def __init__(self): 
 
246
+        this = _clientdata_prop_b.new_D()
 
247
+        try: self.this.append(this)
 
248
+        except: self.this = this
 
249
+    __swig_destroy__ = _clientdata_prop_b.delete_D
 
250
+    __del__ = lambda self : None;
 
251
+D_swigregister = _clientdata_prop_b.D_swigregister
 
252
+D_swigregister(D)
 
253
+
 
254
+
 
255
+def test_t2A(*args):
 
256
+  return _clientdata_prop_b.test_t2A(*args)
 
257
+test_t2A = _clientdata_prop_b.test_t2A
 
258
+
 
259
+def test_t3A(*args):
 
260
+  return _clientdata_prop_b.test_t3A(*args)
 
261
+test_t3A = _clientdata_prop_b.test_t3A
 
262
+
 
263
+def test_B(*args):
 
264
+  return _clientdata_prop_b.test_B(*args)
 
265
+test_B = _clientdata_prop_b.test_B
 
266
+
 
267
+def test_C(*args):
 
268
+  return _clientdata_prop_b.test_C(*args)
 
269
+test_C = _clientdata_prop_b.test_C
 
270
+
 
271
+def test_D(*args):
 
272
+  return _clientdata_prop_b.test_D(*args)
 
273
+test_D = _clientdata_prop_b.test_D
 
274
+
 
275
+def test_tD(*args):
 
276
+  return _clientdata_prop_b.test_tD(*args)
 
277
+test_tD = _clientdata_prop_b.test_tD
 
278
+
 
279
+def test_t2D(*args):
 
280
+  return _clientdata_prop_b.test_t2D(*args)
 
281
+test_t2D = _clientdata_prop_b.test_t2D
 
282
+
 
283
+def new_t2A():
 
284
+  return _clientdata_prop_b.new_t2A()
 
285
+new_t2A = _clientdata_prop_b.new_t2A
 
286
+
 
287
+def new_t3A():
 
288
+  return _clientdata_prop_b.new_t3A()
 
289
+new_t3A = _clientdata_prop_b.new_t3A
 
290
+
 
291
+def new_tD():
 
292
+  return _clientdata_prop_b.new_tD()
 
293
+new_tD = _clientdata_prop_b.new_tD
 
294
+
 
295
+def new_t2D():
 
296
+  return _clientdata_prop_b.new_t2D()
 
297
+new_t2D = _clientdata_prop_b.new_t2D
 
298
+
 
299
+
 
300
--- /dev/null
 
301
+++ swig2.0-2.0.1/Examples/test-suite/python/imports_a.py
 
302
@@ -0,0 +1,96 @@
 
303
+# This file was automatically generated by SWIG (http://www.swig.org).
 
304
+# Version 2.0.1
 
305
+#
 
306
+# Do not make changes to this file unless you know what you are doing--modify
 
307
+# the SWIG interface file instead.
 
308
+# This file is compatible with both classic and new-style classes.
 
309
+
 
310
+from sys import version_info
 
311
+if version_info >= (2,6,0):
 
312
+    def swig_import_helper():
 
313
+        from os.path import dirname
 
314
+        import imp
 
315
+        fp = None
 
316
+        try:
 
317
+            fp, pathname, description = imp.find_module('_imports_a', [dirname(__file__)])
 
318
+        except ImportError:
 
319
+            import _imports_a
 
320
+            return _imports_a
 
321
+        if fp is not None:
 
322
+            try:
 
323
+                _mod = imp.load_module('_imports_a', fp, pathname, description)
 
324
+            finally:
 
325
+                fp.close()
 
326
+            return _mod
 
327
+    _imports_a = swig_import_helper()
 
328
+    del swig_import_helper
 
329
+else:
 
330
+    import _imports_a
 
331
+del version_info
 
332
+try:
 
333
+    _swig_property = property
 
334
+except NameError:
 
335
+    pass # Python < 2.2 doesn't have 'property'.
 
336
+def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
 
337
+    if (name == "thisown"): return self.this.own(value)
 
338
+    if (name == "this"):
 
339
+        if type(value).__name__ == 'SwigPyObject':
 
340
+            self.__dict__[name] = value
 
341
+            return
 
342
+    method = class_type.__swig_setmethods__.get(name,None)
 
343
+    if method: return method(self,value)
 
344
+    if (not static) or hasattr(self,name):
 
345
+        self.__dict__[name] = value
 
346
+    else:
 
347
+        raise AttributeError("You cannot add attributes to %s" % self)
 
348
+
 
349
+def _swig_setattr(self,class_type,name,value):
 
350
+    return _swig_setattr_nondynamic(self,class_type,name,value,0)
 
351
+
 
352
+def _swig_getattr(self,class_type,name):
 
353
+    if (name == "thisown"): return self.this.own()
 
354
+    method = class_type.__swig_getmethods__.get(name,None)
 
355
+    if method: return method(self)
 
356
+    raise AttributeError(name)
 
357
+
 
358
+def _swig_repr(self):
 
359
+    try: strthis = "proxy of " + self.this.__repr__()
 
360
+    except: strthis = ""
 
361
+    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
 
362
+
 
363
+try:
 
364
+    _object = object
 
365
+    _newclass = 1
 
366
+except AttributeError:
 
367
+    class _object : pass
 
368
+    _newclass = 0
 
369
+
 
370
+
 
371
+globalenum1 = _imports_a.globalenum1
 
372
+globalenum2 = _imports_a.globalenum2
 
373
+
 
374
+def global_test(*args):
 
375
+  return _imports_a.global_test(*args)
 
376
+global_test = _imports_a.global_test
 
377
+class A(_object):
 
378
+    __swig_setmethods__ = {}
 
379
+    __setattr__ = lambda self, name, value: _swig_setattr(self, A, name, value)
 
380
+    __swig_getmethods__ = {}
 
381
+    __getattr__ = lambda self, name: _swig_getattr(self, A, name)
 
382
+    __repr__ = _swig_repr
 
383
+    def __init__(self): 
 
384
+        this = _imports_a.new_A()
 
385
+        try: self.this.append(this)
 
386
+        except: self.this = this
 
387
+    __swig_destroy__ = _imports_a.delete_A
 
388
+    __del__ = lambda self : None;
 
389
+    def hello(self): return _imports_a.A_hello(self)
 
390
+    memberenum1 = _imports_a.A_memberenum1
 
391
+    memberenum2 = _imports_a.A_memberenum2
 
392
+    def member_virtual_test(self, *args): return _imports_a.A_member_virtual_test(self, *args)
 
393
+    def global_virtual_test(self, *args): return _imports_a.A_global_virtual_test(self, *args)
 
394
+A_swigregister = _imports_a.A_swigregister
 
395
+A_swigregister(A)
 
396
+
 
397
+
 
398
+
 
399
--- /dev/null
 
400
+++ swig2.0-2.0.1/Examples/test-suite/python/imports_b.py
 
401
@@ -0,0 +1,114 @@
 
402
+# This file was automatically generated by SWIG (http://www.swig.org).
 
403
+# Version 2.0.1
 
404
+#
 
405
+# Do not make changes to this file unless you know what you are doing--modify
 
406
+# the SWIG interface file instead.
 
407
+# This file is compatible with both classic and new-style classes.
 
408
+
 
409
+from sys import version_info
 
410
+if version_info >= (2,6,0):
 
411
+    def swig_import_helper():
 
412
+        from os.path import dirname
 
413
+        import imp
 
414
+        fp = None
 
415
+        try:
 
416
+            fp, pathname, description = imp.find_module('_imports_b', [dirname(__file__)])
 
417
+        except ImportError:
 
418
+            import _imports_b
 
419
+            return _imports_b
 
420
+        if fp is not None:
 
421
+            try:
 
422
+                _mod = imp.load_module('_imports_b', fp, pathname, description)
 
423
+            finally:
 
424
+                fp.close()
 
425
+            return _mod
 
426
+    _imports_b = swig_import_helper()
 
427
+    del swig_import_helper
 
428
+else:
 
429
+    import _imports_b
 
430
+del version_info
 
431
+try:
 
432
+    _swig_property = property
 
433
+except NameError:
 
434
+    pass # Python < 2.2 doesn't have 'property'.
 
435
+def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
 
436
+    if (name == "thisown"): return self.this.own(value)
 
437
+    if (name == "this"):
 
438
+        if type(value).__name__ == 'SwigPyObject':
 
439
+            self.__dict__[name] = value
 
440
+            return
 
441
+    method = class_type.__swig_setmethods__.get(name,None)
 
442
+    if method: return method(self,value)
 
443
+    if (not static) or hasattr(self,name):
 
444
+        self.__dict__[name] = value
 
445
+    else:
 
446
+        raise AttributeError("You cannot add attributes to %s" % self)
 
447
+
 
448
+def _swig_setattr(self,class_type,name,value):
 
449
+    return _swig_setattr_nondynamic(self,class_type,name,value,0)
 
450
+
 
451
+def _swig_getattr(self,class_type,name):
 
452
+    if (name == "thisown"): return self.this.own()
 
453
+    method = class_type.__swig_getmethods__.get(name,None)
 
454
+    if method: return method(self)
 
455
+    raise AttributeError(name)
 
456
+
 
457
+def _swig_repr(self):
 
458
+    try: strthis = "proxy of " + self.this.__repr__()
 
459
+    except: strthis = ""
 
460
+    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
 
461
+
 
462
+try:
 
463
+    _object = object
 
464
+    _newclass = 1
 
465
+except AttributeError:
 
466
+    class _object : pass
 
467
+    _newclass = 0
 
468
+
 
469
+
 
470
+import imports_a
 
471
+class B(imports_a.A):
 
472
+    __swig_setmethods__ = {}
 
473
+    for _s in [imports_a.A]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
 
474
+    __setattr__ = lambda self, name, value: _swig_setattr(self, B, name, value)
 
475
+    __swig_getmethods__ = {}
 
476
+    for _s in [imports_a.A]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
 
477
+    __getattr__ = lambda self, name: _swig_getattr(self, B, name)
 
478
+    __repr__ = _swig_repr
 
479
+    def __init__(self): 
 
480
+        this = _imports_b.new_B()
 
481
+        try: self.this.append(this)
 
482
+        except: self.this = this
 
483
+    def bye(self): return _imports_b.B_bye(self)
 
484
+    def member_virtual_test(self, *args): return _imports_b.B_member_virtual_test(self, *args)
 
485
+    def global_virtual_test(self, *args): return _imports_b.B_global_virtual_test(self, *args)
 
486
+    __swig_destroy__ = _imports_b.delete_B
 
487
+    __del__ = lambda self : None;
 
488
+B_swigregister = _imports_b.B_swigregister
 
489
+B_swigregister(B)
 
490
+
 
491
+class C(imports_a.A):
 
492
+    __swig_setmethods__ = {}
 
493
+    for _s in [imports_a.A]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
 
494
+    __setattr__ = lambda self, name, value: _swig_setattr(self, C, name, value)
 
495
+    __swig_getmethods__ = {}
 
496
+    for _s in [imports_a.A]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
 
497
+    __getattr__ = lambda self, name: _swig_getattr(self, C, name)
 
498
+    __repr__ = _swig_repr
 
499
+    def get_a(self, *args): return _imports_b.C_get_a(self, *args)
 
500
+    def get_a_type(self, *args): return _imports_b.C_get_a_type(self, *args)
 
501
+    def __init__(self): 
 
502
+        this = _imports_b.new_C()
 
503
+        try: self.this.append(this)
 
504
+        except: self.this = this
 
505
+    __swig_destroy__ = _imports_b.delete_C
 
506
+    __del__ = lambda self : None;
 
507
+C_swigregister = _imports_b.C_swigregister
 
508
+C_swigregister(C)
 
509
+
 
510
+def global_test(*args):
 
511
+  return _imports_b.global_test(*args)
 
512
+global_test = _imports_b.global_test
 
513
+
 
514
+
 
515
+
 
516
--- /dev/null
 
517
+++ swig2.0-2.0.1/Examples/test-suite/python/packageoption_a.py
 
518
@@ -0,0 +1,103 @@
 
519
+# This file was automatically generated by SWIG (http://www.swig.org).
 
520
+# Version 2.0.1
 
521
+#
 
522
+# Do not make changes to this file unless you know what you are doing--modify
 
523
+# the SWIG interface file instead.
 
524
+# This file is compatible with both classic and new-style classes.
 
525
+
 
526
+from sys import version_info
 
527
+if version_info >= (2,6,0):
 
528
+    def swig_import_helper():
 
529
+        from os.path import dirname
 
530
+        import imp
 
531
+        fp = None
 
532
+        try:
 
533
+            fp, pathname, description = imp.find_module('_packageoption_a', [dirname(__file__)])
 
534
+        except ImportError:
 
535
+            import _packageoption_a
 
536
+            return _packageoption_a
 
537
+        if fp is not None:
 
538
+            try:
 
539
+                _mod = imp.load_module('_packageoption_a', fp, pathname, description)
 
540
+            finally:
 
541
+                fp.close()
 
542
+            return _mod
 
543
+    _packageoption_a = swig_import_helper()
 
544
+    del swig_import_helper
 
545
+else:
 
546
+    import _packageoption_a
 
547
+del version_info
 
548
+try:
 
549
+    _swig_property = property
 
550
+except NameError:
 
551
+    pass # Python < 2.2 doesn't have 'property'.
 
552
+def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
 
553
+    if (name == "thisown"): return self.this.own(value)
 
554
+    if (name == "this"):
 
555
+        if type(value).__name__ == 'SwigPyObject':
 
556
+            self.__dict__[name] = value
 
557
+            return
 
558
+    method = class_type.__swig_setmethods__.get(name,None)
 
559
+    if method: return method(self,value)
 
560
+    if (not static) or hasattr(self,name):
 
561
+        self.__dict__[name] = value
 
562
+    else:
 
563
+        raise AttributeError("You cannot add attributes to %s" % self)
 
564
+
 
565
+def _swig_setattr(self,class_type,name,value):
 
566
+    return _swig_setattr_nondynamic(self,class_type,name,value,0)
 
567
+
 
568
+def _swig_getattr(self,class_type,name):
 
569
+    if (name == "thisown"): return self.this.own()
 
570
+    method = class_type.__swig_getmethods__.get(name,None)
 
571
+    if method: return method(self)
 
572
+    raise AttributeError(name)
 
573
+
 
574
+def _swig_repr(self):
 
575
+    try: strthis = "proxy of " + self.this.__repr__()
 
576
+    except: strthis = ""
 
577
+    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
 
578
+
 
579
+try:
 
580
+    _object = object
 
581
+    _newclass = 1
 
582
+except AttributeError:
 
583
+    class _object : pass
 
584
+    _newclass = 0
 
585
+
 
586
+
 
587
+class A(_object):
 
588
+    __swig_setmethods__ = {}
 
589
+    __setattr__ = lambda self, name, value: _swig_setattr(self, A, name, value)
 
590
+    __swig_getmethods__ = {}
 
591
+    __getattr__ = lambda self, name: _swig_getattr(self, A, name)
 
592
+    __repr__ = _swig_repr
 
593
+    def testInt(self): return _packageoption_a.A_testInt(self)
 
594
+    def __init__(self): 
 
595
+        this = _packageoption_a.new_A()
 
596
+        try: self.this.append(this)
 
597
+        except: self.this = this
 
598
+    __swig_destroy__ = _packageoption_a.delete_A
 
599
+    __del__ = lambda self : None;
 
600
+A_swigregister = _packageoption_a.A_swigregister
 
601
+A_swigregister(A)
 
602
+
 
603
+class Base(_object):
 
604
+    __swig_setmethods__ = {}
 
605
+    __setattr__ = lambda self, name, value: _swig_setattr(self, Base, name, value)
 
606
+    __swig_getmethods__ = {}
 
607
+    __getattr__ = lambda self, name: _swig_getattr(self, Base, name)
 
608
+    __repr__ = _swig_repr
 
609
+    def vmethod(self): return _packageoption_a.Base_vmethod(self)
 
610
+    def basemethod(self): return _packageoption_a.Base_basemethod(self)
 
611
+    __swig_destroy__ = _packageoption_a.delete_Base
 
612
+    __del__ = lambda self : None;
 
613
+    def __init__(self): 
 
614
+        this = _packageoption_a.new_Base()
 
615
+        try: self.this.append(this)
 
616
+        except: self.this = this
 
617
+Base_swigregister = _packageoption_a.Base_swigregister
 
618
+Base_swigregister(Base)
 
619
+
 
620
+
 
621
+
 
622
--- /dev/null
 
623
+++ swig2.0-2.0.1/Examples/test-suite/python/packageoption_b.py
 
624
@@ -0,0 +1,86 @@
 
625
+# This file was automatically generated by SWIG (http://www.swig.org).
 
626
+# Version 2.0.1
 
627
+#
 
628
+# Do not make changes to this file unless you know what you are doing--modify
 
629
+# the SWIG interface file instead.
 
630
+# This file is compatible with both classic and new-style classes.
 
631
+
 
632
+from sys import version_info
 
633
+if version_info >= (2,6,0):
 
634
+    def swig_import_helper():
 
635
+        from os.path import dirname
 
636
+        import imp
 
637
+        fp = None
 
638
+        try:
 
639
+            fp, pathname, description = imp.find_module('_packageoption_b', [dirname(__file__)])
 
640
+        except ImportError:
 
641
+            import _packageoption_b
 
642
+            return _packageoption_b
 
643
+        if fp is not None:
 
644
+            try:
 
645
+                _mod = imp.load_module('_packageoption_b', fp, pathname, description)
 
646
+            finally:
 
647
+                fp.close()
 
648
+            return _mod
 
649
+    _packageoption_b = swig_import_helper()
 
650
+    del swig_import_helper
 
651
+else:
 
652
+    import _packageoption_b
 
653
+del version_info
 
654
+try:
 
655
+    _swig_property = property
 
656
+except NameError:
 
657
+    pass # Python < 2.2 doesn't have 'property'.
 
658
+def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
 
659
+    if (name == "thisown"): return self.this.own(value)
 
660
+    if (name == "this"):
 
661
+        if type(value).__name__ == 'SwigPyObject':
 
662
+            self.__dict__[name] = value
 
663
+            return
 
664
+    method = class_type.__swig_setmethods__.get(name,None)
 
665
+    if method: return method(self,value)
 
666
+    if (not static) or hasattr(self,name):
 
667
+        self.__dict__[name] = value
 
668
+    else:
 
669
+        raise AttributeError("You cannot add attributes to %s" % self)
 
670
+
 
671
+def _swig_setattr(self,class_type,name,value):
 
672
+    return _swig_setattr_nondynamic(self,class_type,name,value,0)
 
673
+
 
674
+def _swig_getattr(self,class_type,name):
 
675
+    if (name == "thisown"): return self.this.own()
 
676
+    method = class_type.__swig_getmethods__.get(name,None)
 
677
+    if method: return method(self)
 
678
+    raise AttributeError(name)
 
679
+
 
680
+def _swig_repr(self):
 
681
+    try: strthis = "proxy of " + self.this.__repr__()
 
682
+    except: strthis = ""
 
683
+    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
 
684
+
 
685
+try:
 
686
+    _object = object
 
687
+    _newclass = 1
 
688
+except AttributeError:
 
689
+    class _object : pass
 
690
+    _newclass = 0
 
691
+
 
692
+
 
693
+class B(_object):
 
694
+    __swig_setmethods__ = {}
 
695
+    __setattr__ = lambda self, name, value: _swig_setattr(self, B, name, value)
 
696
+    __swig_getmethods__ = {}
 
697
+    __getattr__ = lambda self, name: _swig_getattr(self, B, name)
 
698
+    __repr__ = _swig_repr
 
699
+    def testInt(self): return _packageoption_b.B_testInt(self)
 
700
+    def __init__(self): 
 
701
+        this = _packageoption_b.new_B()
 
702
+        try: self.this.append(this)
 
703
+        except: self.this = this
 
704
+    __swig_destroy__ = _packageoption_b.delete_B
 
705
+    __del__ = lambda self : None;
 
706
+B_swigregister = _packageoption_b.B_swigregister
 
707
+B_swigregister(B)
 
708
+
 
709
+
 
710
+
 
711
--- /dev/null
 
712
+++ swig2.0-2.0.1/Examples/test-suite/python/packageoption_c.py
 
713
@@ -0,0 +1,89 @@
 
714
+# This file was automatically generated by SWIG (http://www.swig.org).
 
715
+# Version 2.0.1
 
716
+#
 
717
+# Do not make changes to this file unless you know what you are doing--modify
 
718
+# the SWIG interface file instead.
 
719
+# This file is compatible with both classic and new-style classes.
 
720
+
 
721
+from sys import version_info
 
722
+if version_info >= (2,6,0):
 
723
+    def swig_import_helper():
 
724
+        from os.path import dirname
 
725
+        import imp
 
726
+        fp = None
 
727
+        try:
 
728
+            fp, pathname, description = imp.find_module('_packageoption_c', [dirname(__file__)])
 
729
+        except ImportError:
 
730
+            import _packageoption_c
 
731
+            return _packageoption_c
 
732
+        if fp is not None:
 
733
+            try:
 
734
+                _mod = imp.load_module('_packageoption_c', fp, pathname, description)
 
735
+            finally:
 
736
+                fp.close()
 
737
+            return _mod
 
738
+    _packageoption_c = swig_import_helper()
 
739
+    del swig_import_helper
 
740
+else:
 
741
+    import _packageoption_c
 
742
+del version_info
 
743
+try:
 
744
+    _swig_property = property
 
745
+except NameError:
 
746
+    pass # Python < 2.2 doesn't have 'property'.
 
747
+def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
 
748
+    if (name == "thisown"): return self.this.own(value)
 
749
+    if (name == "this"):
 
750
+        if type(value).__name__ == 'SwigPyObject':
 
751
+            self.__dict__[name] = value
 
752
+            return
 
753
+    method = class_type.__swig_setmethods__.get(name,None)
 
754
+    if method: return method(self,value)
 
755
+    if (not static) or hasattr(self,name):
 
756
+        self.__dict__[name] = value
 
757
+    else:
 
758
+        raise AttributeError("You cannot add attributes to %s" % self)
 
759
+
 
760
+def _swig_setattr(self,class_type,name,value):
 
761
+    return _swig_setattr_nondynamic(self,class_type,name,value,0)
 
762
+
 
763
+def _swig_getattr(self,class_type,name):
 
764
+    if (name == "thisown"): return self.this.own()
 
765
+    method = class_type.__swig_getmethods__.get(name,None)
 
766
+    if method: return method(self)
 
767
+    raise AttributeError(name)
 
768
+
 
769
+def _swig_repr(self):
 
770
+    try: strthis = "proxy of " + self.this.__repr__()
 
771
+    except: strthis = ""
 
772
+    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
 
773
+
 
774
+try:
 
775
+    _object = object
 
776
+    _newclass = 1
 
777
+except AttributeError:
 
778
+    class _object : pass
 
779
+    _newclass = 0
 
780
+
 
781
+
 
782
+import CommonPackage.packageoption_a
 
783
+class Derived(CommonPackage.packageoption_a.Base):
 
784
+    __swig_setmethods__ = {}
 
785
+    for _s in [CommonPackage.packageoption_a.Base]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
 
786
+    __setattr__ = lambda self, name, value: _swig_setattr(self, Derived, name, value)
 
787
+    __swig_getmethods__ = {}
 
788
+    for _s in [CommonPackage.packageoption_a.Base]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
 
789
+    __getattr__ = lambda self, name: _swig_getattr(self, Derived, name)
 
790
+    __repr__ = _swig_repr
 
791
+    def vmethod(self): return _packageoption_c.Derived_vmethod(self)
 
792
+    __swig_destroy__ = _packageoption_c.delete_Derived
 
793
+    __del__ = lambda self : None;
 
794
+    def __init__(self): 
 
795
+        this = _packageoption_c.new_Derived()
 
796
+        try: self.this.append(this)
 
797
+        except: self.this = this
 
798
+Derived_swigregister = _packageoption_c.Derived_swigregister
 
799
+Derived_swigregister(Derived)
 
800
+
 
801
+
 
802
+
 
803
--- /dev/null
 
804
+++ swig2.0-2.0.1/Examples/test-suite/python/mod_a.py
 
805
@@ -0,0 +1,104 @@
 
806
+# This file was automatically generated by SWIG (http://www.swig.org).
 
807
+# Version 2.0.1
 
808
+#
 
809
+# Do not make changes to this file unless you know what you are doing--modify
 
810
+# the SWIG interface file instead.
 
811
+# This file is compatible with both classic and new-style classes.
 
812
+
 
813
+from sys import version_info
 
814
+if version_info >= (2,6,0):
 
815
+    def swig_import_helper():
 
816
+        from os.path import dirname
 
817
+        import imp
 
818
+        fp = None
 
819
+        try:
 
820
+            fp, pathname, description = imp.find_module('_mod_a', [dirname(__file__)])
 
821
+        except ImportError:
 
822
+            import _mod_a
 
823
+            return _mod_a
 
824
+        if fp is not None:
 
825
+            try:
 
826
+                _mod = imp.load_module('_mod_a', fp, pathname, description)
 
827
+            finally:
 
828
+                fp.close()
 
829
+            return _mod
 
830
+    _mod_a = swig_import_helper()
 
831
+    del swig_import_helper
 
832
+else:
 
833
+    import _mod_a
 
834
+del version_info
 
835
+try:
 
836
+    _swig_property = property
 
837
+except NameError:
 
838
+    pass # Python < 2.2 doesn't have 'property'.
 
839
+def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
 
840
+    if (name == "thisown"): return self.this.own(value)
 
841
+    if (name == "this"):
 
842
+        if type(value).__name__ == 'SwigPyObject':
 
843
+            self.__dict__[name] = value
 
844
+            return
 
845
+    method = class_type.__swig_setmethods__.get(name,None)
 
846
+    if method: return method(self,value)
 
847
+    if (not static) or hasattr(self,name):
 
848
+        self.__dict__[name] = value
 
849
+    else:
 
850
+        raise AttributeError("You cannot add attributes to %s" % self)
 
851
+
 
852
+def _swig_setattr(self,class_type,name,value):
 
853
+    return _swig_setattr_nondynamic(self,class_type,name,value,0)
 
854
+
 
855
+def _swig_getattr(self,class_type,name):
 
856
+    if (name == "thisown"): return self.this.own()
 
857
+    method = class_type.__swig_getmethods__.get(name,None)
 
858
+    if method: return method(self)
 
859
+    raise AttributeError(name)
 
860
+
 
861
+def _swig_repr(self):
 
862
+    try: strthis = "proxy of " + self.this.__repr__()
 
863
+    except: strthis = ""
 
864
+    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
 
865
+
 
866
+try:
 
867
+    _object = object
 
868
+    _newclass = 1
 
869
+except AttributeError:
 
870
+    class _object : pass
 
871
+    _newclass = 0
 
872
+
 
873
+
 
874
+class A(_object):
 
875
+    __swig_setmethods__ = {}
 
876
+    __setattr__ = lambda self, name, value: _swig_setattr(self, A, name, value)
 
877
+    __swig_getmethods__ = {}
 
878
+    __getattr__ = lambda self, name: _swig_getattr(self, A, name)
 
879
+    __repr__ = _swig_repr
 
880
+    def __init__(self): 
 
881
+        this = _mod_a.new_A()
 
882
+        try: self.this.append(this)
 
883
+        except: self.this = this
 
884
+    def GetC(self): return _mod_a.A_GetC(self)
 
885
+    def DoSomething(self, *args): return _mod_a.A_DoSomething(self, *args)
 
886
+    __swig_destroy__ = _mod_a.delete_A
 
887
+    __del__ = lambda self : None;
 
888
+A_swigregister = _mod_a.A_swigregister
 
889
+A_swigregister(A)
 
890
+
 
891
+class B(A):
 
892
+    __swig_setmethods__ = {}
 
893
+    for _s in [A]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
 
894
+    __setattr__ = lambda self, name, value: _swig_setattr(self, B, name, value)
 
895
+    __swig_getmethods__ = {}
 
896
+    for _s in [A]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
 
897
+    __getattr__ = lambda self, name: _swig_getattr(self, B, name)
 
898
+    __repr__ = _swig_repr
 
899
+    def __init__(self): 
 
900
+        this = _mod_a.new_B()
 
901
+        try: self.this.append(this)
 
902
+        except: self.this = this
 
903
+    __swig_destroy__ = _mod_a.delete_B
 
904
+    __del__ = lambda self : None;
 
905
+B_swigregister = _mod_a.B_swigregister
 
906
+B_swigregister(B)
 
907
+
 
908
+
 
909
+
 
910
--- /dev/null
 
911
+++ swig2.0-2.0.1/Examples/test-suite/python/mod_b.py
 
912
@@ -0,0 +1,105 @@
 
913
+# This file was automatically generated by SWIG (http://www.swig.org).
 
914
+# Version 2.0.1
 
915
+#
 
916
+# Do not make changes to this file unless you know what you are doing--modify
 
917
+# the SWIG interface file instead.
 
918
+# This file is compatible with both classic and new-style classes.
 
919
+
 
920
+from sys import version_info
 
921
+if version_info >= (2,6,0):
 
922
+    def swig_import_helper():
 
923
+        from os.path import dirname
 
924
+        import imp
 
925
+        fp = None
 
926
+        try:
 
927
+            fp, pathname, description = imp.find_module('_mod_b', [dirname(__file__)])
 
928
+        except ImportError:
 
929
+            import _mod_b
 
930
+            return _mod_b
 
931
+        if fp is not None:
 
932
+            try:
 
933
+                _mod = imp.load_module('_mod_b', fp, pathname, description)
 
934
+            finally:
 
935
+                fp.close()
 
936
+            return _mod
 
937
+    _mod_b = swig_import_helper()
 
938
+    del swig_import_helper
 
939
+else:
 
940
+    import _mod_b
 
941
+del version_info
 
942
+try:
 
943
+    _swig_property = property
 
944
+except NameError:
 
945
+    pass # Python < 2.2 doesn't have 'property'.
 
946
+def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
 
947
+    if (name == "thisown"): return self.this.own(value)
 
948
+    if (name == "this"):
 
949
+        if type(value).__name__ == 'SwigPyObject':
 
950
+            self.__dict__[name] = value
 
951
+            return
 
952
+    method = class_type.__swig_setmethods__.get(name,None)
 
953
+    if method: return method(self,value)
 
954
+    if (not static) or hasattr(self,name):
 
955
+        self.__dict__[name] = value
 
956
+    else:
 
957
+        raise AttributeError("You cannot add attributes to %s" % self)
 
958
+
 
959
+def _swig_setattr(self,class_type,name,value):
 
960
+    return _swig_setattr_nondynamic(self,class_type,name,value,0)
 
961
+
 
962
+def _swig_getattr(self,class_type,name):
 
963
+    if (name == "thisown"): return self.this.own()
 
964
+    method = class_type.__swig_getmethods__.get(name,None)
 
965
+    if method: return method(self)
 
966
+    raise AttributeError(name)
 
967
+
 
968
+def _swig_repr(self):
 
969
+    try: strthis = "proxy of " + self.this.__repr__()
 
970
+    except: strthis = ""
 
971
+    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
 
972
+
 
973
+try:
 
974
+    _object = object
 
975
+    _newclass = 1
 
976
+except AttributeError:
 
977
+    class _object : pass
 
978
+    _newclass = 0
 
979
+
 
980
+
 
981
+import mod_a
 
982
+class C(mod_a.B):
 
983
+    __swig_setmethods__ = {}
 
984
+    for _s in [mod_a.B]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
 
985
+    __setattr__ = lambda self, name, value: _swig_setattr(self, C, name, value)
 
986
+    __swig_getmethods__ = {}
 
987
+    for _s in [mod_a.B]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
 
988
+    __getattr__ = lambda self, name: _swig_getattr(self, C, name)
 
989
+    __repr__ = _swig_repr
 
990
+    def __init__(self): 
 
991
+        this = _mod_b.new_C()
 
992
+        try: self.this.append(this)
 
993
+        except: self.this = this
 
994
+    __swig_destroy__ = _mod_b.delete_C
 
995
+    __del__ = lambda self : None;
 
996
+C_swigregister = _mod_b.C_swigregister
 
997
+C_swigregister(C)
 
998
+
 
999
+class D(C):
 
1000
+    __swig_setmethods__ = {}
 
1001
+    for _s in [C]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
 
1002
+    __setattr__ = lambda self, name, value: _swig_setattr(self, D, name, value)
 
1003
+    __swig_getmethods__ = {}
 
1004
+    for _s in [C]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
 
1005
+    __getattr__ = lambda self, name: _swig_getattr(self, D, name)
 
1006
+    __repr__ = _swig_repr
 
1007
+    def __init__(self): 
 
1008
+        this = _mod_b.new_D()
 
1009
+        try: self.this.append(this)
 
1010
+        except: self.this = this
 
1011
+    __swig_destroy__ = _mod_b.delete_D
 
1012
+    __del__ = lambda self : None;
 
1013
+D_swigregister = _mod_b.D_swigregister
 
1014
+D_swigregister(D)
 
1015
+
 
1016
+
 
1017
+
 
1018
--- /dev/null
 
1019
+++ swig2.0-2.0.1/Examples/test-suite/python/multi_import_a.py
 
1020
@@ -0,0 +1,89 @@
 
1021
+# This file was automatically generated by SWIG (http://www.swig.org).
 
1022
+# Version 2.0.1
 
1023
+#
 
1024
+# Do not make changes to this file unless you know what you are doing--modify
 
1025
+# the SWIG interface file instead.
 
1026
+# This file is compatible with both classic and new-style classes.
 
1027
+
 
1028
+from sys import version_info
 
1029
+if version_info >= (2,6,0):
 
1030
+    def swig_import_helper():
 
1031
+        from os.path import dirname
 
1032
+        import imp
 
1033
+        fp = None
 
1034
+        try:
 
1035
+            fp, pathname, description = imp.find_module('_multi_import_a', [dirname(__file__)])
 
1036
+        except ImportError:
 
1037
+            import _multi_import_a
 
1038
+            return _multi_import_a
 
1039
+        if fp is not None:
 
1040
+            try:
 
1041
+                _mod = imp.load_module('_multi_import_a', fp, pathname, description)
 
1042
+            finally:
 
1043
+                fp.close()
 
1044
+            return _mod
 
1045
+    _multi_import_a = swig_import_helper()
 
1046
+    del swig_import_helper
 
1047
+else:
 
1048
+    import _multi_import_a
 
1049
+del version_info
 
1050
+try:
 
1051
+    _swig_property = property
 
1052
+except NameError:
 
1053
+    pass # Python < 2.2 doesn't have 'property'.
 
1054
+def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
 
1055
+    if (name == "thisown"): return self.this.own(value)
 
1056
+    if (name == "this"):
 
1057
+        if type(value).__name__ == 'SwigPyObject':
 
1058
+            self.__dict__[name] = value
 
1059
+            return
 
1060
+    method = class_type.__swig_setmethods__.get(name,None)
 
1061
+    if method: return method(self,value)
 
1062
+    if (not static) or hasattr(self,name):
 
1063
+        self.__dict__[name] = value
 
1064
+    else:
 
1065
+        raise AttributeError("You cannot add attributes to %s" % self)
 
1066
+
 
1067
+def _swig_setattr(self,class_type,name,value):
 
1068
+    return _swig_setattr_nondynamic(self,class_type,name,value,0)
 
1069
+
 
1070
+def _swig_getattr(self,class_type,name):
 
1071
+    if (name == "thisown"): return self.this.own()
 
1072
+    method = class_type.__swig_getmethods__.get(name,None)
 
1073
+    if method: return method(self)
 
1074
+    raise AttributeError(name)
 
1075
+
 
1076
+def _swig_repr(self):
 
1077
+    try: strthis = "proxy of " + self.this.__repr__()
 
1078
+    except: strthis = ""
 
1079
+    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
 
1080
+
 
1081
+try:
 
1082
+    _object = object
 
1083
+    _newclass = 1
 
1084
+except AttributeError:
 
1085
+    class _object : pass
 
1086
+    _newclass = 0
 
1087
+
 
1088
+
 
1089
+import multi_import_b
 
1090
+class ZZZ(multi_import_b.XXX):
 
1091
+    __swig_setmethods__ = {}
 
1092
+    for _s in [multi_import_b.XXX]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
 
1093
+    __setattr__ = lambda self, name, value: _swig_setattr(self, ZZZ, name, value)
 
1094
+    __swig_getmethods__ = {}
 
1095
+    for _s in [multi_import_b.XXX]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
 
1096
+    __getattr__ = lambda self, name: _swig_getattr(self, ZZZ, name)
 
1097
+    __repr__ = _swig_repr
 
1098
+    def testz(self): return _multi_import_a.ZZZ_testz(self)
 
1099
+    def __init__(self): 
 
1100
+        this = _multi_import_a.new_ZZZ()
 
1101
+        try: self.this.append(this)
 
1102
+        except: self.this = this
 
1103
+    __swig_destroy__ = _multi_import_a.delete_ZZZ
 
1104
+    __del__ = lambda self : None;
 
1105
+ZZZ_swigregister = _multi_import_a.ZZZ_swigregister
 
1106
+ZZZ_swigregister(ZZZ)
 
1107
+
 
1108
+
 
1109
+
 
1110
--- /dev/null
 
1111
+++ swig2.0-2.0.1/Examples/test-suite/python/multi_import_b.py
 
1112
@@ -0,0 +1,104 @@
 
1113
+# This file was automatically generated by SWIG (http://www.swig.org).
 
1114
+# Version 2.0.1
 
1115
+#
 
1116
+# Do not make changes to this file unless you know what you are doing--modify
 
1117
+# the SWIG interface file instead.
 
1118
+# This file is compatible with both classic and new-style classes.
 
1119
+
 
1120
+from sys import version_info
 
1121
+if version_info >= (2,6,0):
 
1122
+    def swig_import_helper():
 
1123
+        from os.path import dirname
 
1124
+        import imp
 
1125
+        fp = None
 
1126
+        try:
 
1127
+            fp, pathname, description = imp.find_module('_multi_import_b', [dirname(__file__)])
 
1128
+        except ImportError:
 
1129
+            import _multi_import_b
 
1130
+            return _multi_import_b
 
1131
+        if fp is not None:
 
1132
+            try:
 
1133
+                _mod = imp.load_module('_multi_import_b', fp, pathname, description)
 
1134
+            finally:
 
1135
+                fp.close()
 
1136
+            return _mod
 
1137
+    _multi_import_b = swig_import_helper()
 
1138
+    del swig_import_helper
 
1139
+else:
 
1140
+    import _multi_import_b
 
1141
+del version_info
 
1142
+try:
 
1143
+    _swig_property = property
 
1144
+except NameError:
 
1145
+    pass # Python < 2.2 doesn't have 'property'.
 
1146
+def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
 
1147
+    if (name == "thisown"): return self.this.own(value)
 
1148
+    if (name == "this"):
 
1149
+        if type(value).__name__ == 'SwigPyObject':
 
1150
+            self.__dict__[name] = value
 
1151
+            return
 
1152
+    method = class_type.__swig_setmethods__.get(name,None)
 
1153
+    if method: return method(self,value)
 
1154
+    if (not static) or hasattr(self,name):
 
1155
+        self.__dict__[name] = value
 
1156
+    else:
 
1157
+        raise AttributeError("You cannot add attributes to %s" % self)
 
1158
+
 
1159
+def _swig_setattr(self,class_type,name,value):
 
1160
+    return _swig_setattr_nondynamic(self,class_type,name,value,0)
 
1161
+
 
1162
+def _swig_getattr(self,class_type,name):
 
1163
+    if (name == "thisown"): return self.this.own()
 
1164
+    method = class_type.__swig_getmethods__.get(name,None)
 
1165
+    if method: return method(self)
 
1166
+    raise AttributeError(name)
 
1167
+
 
1168
+def _swig_repr(self):
 
1169
+    try: strthis = "proxy of " + self.this.__repr__()
 
1170
+    except: strthis = ""
 
1171
+    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
 
1172
+
 
1173
+try:
 
1174
+    _object = object
 
1175
+    _newclass = 1
 
1176
+except AttributeError:
 
1177
+    class _object : pass
 
1178
+    _newclass = 0
 
1179
+
 
1180
+
 
1181
+class XXX(_object):
 
1182
+    __swig_setmethods__ = {}
 
1183
+    __setattr__ = lambda self, name, value: _swig_setattr(self, XXX, name, value)
 
1184
+    __swig_getmethods__ = {}
 
1185
+    __getattr__ = lambda self, name: _swig_getattr(self, XXX, name)
 
1186
+    __repr__ = _swig_repr
 
1187
+    def testx(self): return _multi_import_b.XXX_testx(self)
 
1188
+    def __init__(self): 
 
1189
+        this = _multi_import_b.new_XXX()
 
1190
+        try: self.this.append(this)
 
1191
+        except: self.this = this
 
1192
+    __swig_destroy__ = _multi_import_b.delete_XXX
 
1193
+    __del__ = lambda self : None;
 
1194
+XXX_swigregister = _multi_import_b.XXX_swigregister
 
1195
+XXX_swigregister(XXX)
 
1196
+
 
1197
+class YYY(XXX):
 
1198
+    __swig_setmethods__ = {}
 
1199
+    for _s in [XXX]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
 
1200
+    __setattr__ = lambda self, name, value: _swig_setattr(self, YYY, name, value)
 
1201
+    __swig_getmethods__ = {}
 
1202
+    for _s in [XXX]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
 
1203
+    __getattr__ = lambda self, name: _swig_getattr(self, YYY, name)
 
1204
+    __repr__ = _swig_repr
 
1205
+    def testy(self): return _multi_import_b.YYY_testy(self)
 
1206
+    def __init__(self): 
 
1207
+        this = _multi_import_b.new_YYY()
 
1208
+        try: self.this.append(this)
 
1209
+        except: self.this = this
 
1210
+    __swig_destroy__ = _multi_import_b.delete_YYY
 
1211
+    __del__ = lambda self : None;
 
1212
+YYY_swigregister = _multi_import_b.YYY_swigregister
 
1213
+YYY_swigregister(YYY)
 
1214
+
 
1215
+
 
1216
+