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:
6
swig2.0 (2.0.1-2) unstable; urgency=low
8
* debian/control: Fix build dependency on pcre3 which should be available on
9
mips, mipsel and m68k as well.
11
The person named in the Author field signed this changelog entry.
12
Author: Torsten Landschoff <torsten@debian.org>
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:
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>
28
+++ swig2.0-2.0.1/Examples/test-suite/python/clientdata_prop_a.py
30
+# This file was automatically generated by SWIG (http://www.swig.org).
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.
37
+from sys import version_info
38
+if version_info >= (2,6,0):
39
+ def swig_import_helper():
40
+ from os.path import dirname
44
+ fp, pathname, description = imp.find_module('_clientdata_prop_a', [dirname(__file__)])
46
+ import _clientdata_prop_a
47
+ return _clientdata_prop_a
50
+ _mod = imp.load_module('_clientdata_prop_a', fp, pathname, description)
54
+ _clientdata_prop_a = swig_import_helper()
55
+ del swig_import_helper
57
+ import _clientdata_prop_a
60
+ _swig_property = property
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
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
74
+ raise AttributeError("You cannot add attributes to %s" % self)
76
+def _swig_setattr(self,class_type,name,value):
77
+ return _swig_setattr_nondynamic(self,class_type,name,value,0)
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)
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,)
93
+except AttributeError:
94
+ class _object : pass
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
116
+ return _clientdata_prop_a.test_A(*args)
117
+test_A = _clientdata_prop_a.test_A
120
+ return _clientdata_prop_a.test_tA(*args)
121
+test_tA = _clientdata_prop_a.test_tA
124
+ return _clientdata_prop_a.new_tA()
125
+new_tA = _clientdata_prop_a.new_tA
129
+++ swig2.0-2.0.1/Examples/test-suite/python/clientdata_prop_b.py
131
+# This file was automatically generated by SWIG (http://www.swig.org).
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.
138
+from sys import version_info
139
+if version_info >= (2,6,0):
140
+ def swig_import_helper():
141
+ from os.path import dirname
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
151
+ _mod = imp.load_module('_clientdata_prop_b', fp, pathname, description)
155
+ _clientdata_prop_b = swig_import_helper()
156
+ del swig_import_helper
158
+ import _clientdata_prop_b
161
+ _swig_property = property
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
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
175
+ raise AttributeError("You cannot add attributes to %s" % self)
177
+def _swig_setattr(self,class_type,name,value):
178
+ return _swig_setattr_nondynamic(self,class_type,name,value,0)
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)
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,)
194
+except AttributeError:
195
+ class _object : pass
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
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
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
255
+def test_t2A(*args):
256
+ return _clientdata_prop_b.test_t2A(*args)
257
+test_t2A = _clientdata_prop_b.test_t2A
259
+def test_t3A(*args):
260
+ return _clientdata_prop_b.test_t3A(*args)
261
+test_t3A = _clientdata_prop_b.test_t3A
264
+ return _clientdata_prop_b.test_B(*args)
265
+test_B = _clientdata_prop_b.test_B
268
+ return _clientdata_prop_b.test_C(*args)
269
+test_C = _clientdata_prop_b.test_C
272
+ return _clientdata_prop_b.test_D(*args)
273
+test_D = _clientdata_prop_b.test_D
276
+ return _clientdata_prop_b.test_tD(*args)
277
+test_tD = _clientdata_prop_b.test_tD
279
+def test_t2D(*args):
280
+ return _clientdata_prop_b.test_t2D(*args)
281
+test_t2D = _clientdata_prop_b.test_t2D
284
+ return _clientdata_prop_b.new_t2A()
285
+new_t2A = _clientdata_prop_b.new_t2A
288
+ return _clientdata_prop_b.new_t3A()
289
+new_t3A = _clientdata_prop_b.new_t3A
292
+ return _clientdata_prop_b.new_tD()
293
+new_tD = _clientdata_prop_b.new_tD
296
+ return _clientdata_prop_b.new_t2D()
297
+new_t2D = _clientdata_prop_b.new_t2D
301
+++ swig2.0-2.0.1/Examples/test-suite/python/imports_a.py
303
+# This file was automatically generated by SWIG (http://www.swig.org).
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.
310
+from sys import version_info
311
+if version_info >= (2,6,0):
312
+ def swig_import_helper():
313
+ from os.path import dirname
317
+ fp, pathname, description = imp.find_module('_imports_a', [dirname(__file__)])
318
+ except ImportError:
323
+ _mod = imp.load_module('_imports_a', fp, pathname, description)
327
+ _imports_a = swig_import_helper()
328
+ del swig_import_helper
333
+ _swig_property = property
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
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
347
+ raise AttributeError("You cannot add attributes to %s" % self)
349
+def _swig_setattr(self,class_type,name,value):
350
+ return _swig_setattr_nondynamic(self,class_type,name,value,0)
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)
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,)
366
+except AttributeError:
367
+ class _object : pass
371
+globalenum1 = _imports_a.globalenum1
372
+globalenum2 = _imports_a.globalenum2
374
+def global_test(*args):
375
+ return _imports_a.global_test(*args)
376
+global_test = _imports_a.global_test
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
400
+++ swig2.0-2.0.1/Examples/test-suite/python/imports_b.py
402
+# This file was automatically generated by SWIG (http://www.swig.org).
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.
409
+from sys import version_info
410
+if version_info >= (2,6,0):
411
+ def swig_import_helper():
412
+ from os.path import dirname
416
+ fp, pathname, description = imp.find_module('_imports_b', [dirname(__file__)])
417
+ except ImportError:
422
+ _mod = imp.load_module('_imports_b', fp, pathname, description)
426
+ _imports_b = swig_import_helper()
427
+ del swig_import_helper
432
+ _swig_property = property
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
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
446
+ raise AttributeError("You cannot add attributes to %s" % self)
448
+def _swig_setattr(self,class_type,name,value):
449
+ return _swig_setattr_nondynamic(self,class_type,name,value,0)
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)
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,)
465
+except AttributeError:
466
+ class _object : pass
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
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
510
+def global_test(*args):
511
+ return _imports_b.global_test(*args)
512
+global_test = _imports_b.global_test
517
+++ swig2.0-2.0.1/Examples/test-suite/python/packageoption_a.py
519
+# This file was automatically generated by SWIG (http://www.swig.org).
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.
526
+from sys import version_info
527
+if version_info >= (2,6,0):
528
+ def swig_import_helper():
529
+ from os.path import dirname
533
+ fp, pathname, description = imp.find_module('_packageoption_a', [dirname(__file__)])
534
+ except ImportError:
535
+ import _packageoption_a
536
+ return _packageoption_a
539
+ _mod = imp.load_module('_packageoption_a', fp, pathname, description)
543
+ _packageoption_a = swig_import_helper()
544
+ del swig_import_helper
546
+ import _packageoption_a
549
+ _swig_property = property
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
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
563
+ raise AttributeError("You cannot add attributes to %s" % self)
565
+def _swig_setattr(self,class_type,name,value):
566
+ return _swig_setattr_nondynamic(self,class_type,name,value,0)
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)
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,)
582
+except AttributeError:
583
+ class _object : pass
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
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)
623
+++ swig2.0-2.0.1/Examples/test-suite/python/packageoption_b.py
625
+# This file was automatically generated by SWIG (http://www.swig.org).
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.
632
+from sys import version_info
633
+if version_info >= (2,6,0):
634
+ def swig_import_helper():
635
+ from os.path import dirname
639
+ fp, pathname, description = imp.find_module('_packageoption_b', [dirname(__file__)])
640
+ except ImportError:
641
+ import _packageoption_b
642
+ return _packageoption_b
645
+ _mod = imp.load_module('_packageoption_b', fp, pathname, description)
649
+ _packageoption_b = swig_import_helper()
650
+ del swig_import_helper
652
+ import _packageoption_b
655
+ _swig_property = property
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
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
669
+ raise AttributeError("You cannot add attributes to %s" % self)
671
+def _swig_setattr(self,class_type,name,value):
672
+ return _swig_setattr_nondynamic(self,class_type,name,value,0)
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)
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,)
688
+except AttributeError:
689
+ class _object : pass
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
712
+++ swig2.0-2.0.1/Examples/test-suite/python/packageoption_c.py
714
+# This file was automatically generated by SWIG (http://www.swig.org).
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.
721
+from sys import version_info
722
+if version_info >= (2,6,0):
723
+ def swig_import_helper():
724
+ from os.path import dirname
728
+ fp, pathname, description = imp.find_module('_packageoption_c', [dirname(__file__)])
729
+ except ImportError:
730
+ import _packageoption_c
731
+ return _packageoption_c
734
+ _mod = imp.load_module('_packageoption_c', fp, pathname, description)
738
+ _packageoption_c = swig_import_helper()
739
+ del swig_import_helper
741
+ import _packageoption_c
744
+ _swig_property = property
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
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
758
+ raise AttributeError("You cannot add attributes to %s" % self)
760
+def _swig_setattr(self,class_type,name,value):
761
+ return _swig_setattr_nondynamic(self,class_type,name,value,0)
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)
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,)
777
+except AttributeError:
778
+ class _object : pass
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)
804
+++ swig2.0-2.0.1/Examples/test-suite/python/mod_a.py
806
+# This file was automatically generated by SWIG (http://www.swig.org).
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.
813
+from sys import version_info
814
+if version_info >= (2,6,0):
815
+ def swig_import_helper():
816
+ from os.path import dirname
820
+ fp, pathname, description = imp.find_module('_mod_a', [dirname(__file__)])
821
+ except ImportError:
826
+ _mod = imp.load_module('_mod_a', fp, pathname, description)
830
+ _mod_a = swig_import_helper()
831
+ del swig_import_helper
836
+ _swig_property = property
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
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
850
+ raise AttributeError("You cannot add attributes to %s" % self)
852
+def _swig_setattr(self,class_type,name,value):
853
+ return _swig_setattr_nondynamic(self,class_type,name,value,0)
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)
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,)
869
+except AttributeError:
870
+ class _object : pass
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
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
911
+++ swig2.0-2.0.1/Examples/test-suite/python/mod_b.py
913
+# This file was automatically generated by SWIG (http://www.swig.org).
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.
920
+from sys import version_info
921
+if version_info >= (2,6,0):
922
+ def swig_import_helper():
923
+ from os.path import dirname
927
+ fp, pathname, description = imp.find_module('_mod_b', [dirname(__file__)])
928
+ except ImportError:
933
+ _mod = imp.load_module('_mod_b', fp, pathname, description)
937
+ _mod_b = swig_import_helper()
938
+ del swig_import_helper
943
+ _swig_property = property
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
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
957
+ raise AttributeError("You cannot add attributes to %s" % self)
959
+def _swig_setattr(self,class_type,name,value):
960
+ return _swig_setattr_nondynamic(self,class_type,name,value,0)
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)
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,)
976
+except AttributeError:
977
+ class _object : pass
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
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
1019
+++ swig2.0-2.0.1/Examples/test-suite/python/multi_import_a.py
1021
+# This file was automatically generated by SWIG (http://www.swig.org).
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.
1028
+from sys import version_info
1029
+if version_info >= (2,6,0):
1030
+ def swig_import_helper():
1031
+ from os.path import dirname
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:
1041
+ _mod = imp.load_module('_multi_import_a', fp, pathname, description)
1045
+ _multi_import_a = swig_import_helper()
1046
+ del swig_import_helper
1048
+ import _multi_import_a
1051
+ _swig_property = property
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
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
1065
+ raise AttributeError("You cannot add attributes to %s" % self)
1067
+def _swig_setattr(self,class_type,name,value):
1068
+ return _swig_setattr_nondynamic(self,class_type,name,value,0)
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)
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,)
1084
+except AttributeError:
1085
+ class _object : pass
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)
1111
+++ swig2.0-2.0.1/Examples/test-suite/python/multi_import_b.py
1113
+# This file was automatically generated by SWIG (http://www.swig.org).
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.
1120
+from sys import version_info
1121
+if version_info >= (2,6,0):
1122
+ def swig_import_helper():
1123
+ from os.path import dirname
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:
1133
+ _mod = imp.load_module('_multi_import_b', fp, pathname, description)
1137
+ _multi_import_b = swig_import_helper()
1138
+ del swig_import_helper
1140
+ import _multi_import_b
1143
+ _swig_property = property
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
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
1157
+ raise AttributeError("You cannot add attributes to %s" % self)
1159
+def _swig_setattr(self,class_type,name,value):
1160
+ return _swig_setattr_nondynamic(self,class_type,name,value,0)
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)
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,)
1176
+except AttributeError:
1177
+ class _object : pass
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)
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)