1 # This file was automatically generated by SWIG (http://www.swig.org).
4 # Do not make changes to this file unless you know what you are doing--modify
5 # the SWIG interface file instead.
7 from sys
import version_info
as _swig_python_version_info
8 if _swig_python_version_info
< (2, 7, 0):
9 raise RuntimeError("Python 2.7 or later required")
11 # Import the low-level C/C++ module
12 if __package__
or "." in __name__
:
18 import builtins
as __builtin__
24 strthis
= "proxy of " + self
.this
.__repr
__()
25 except __builtin__
.Exception:
27 return "<%s.%s; %s >" % (self
.__class
__.__module
__, self
.__class
__.__name
__, strthis
,)
30 def _swig_setattr_nondynamic_instance_variable(set):
31 def set_instance_attr(self
, name
, value
):
35 set(self
, name
, value
)
36 elif hasattr(self
, name
) and isinstance(getattr(type(self
), name
), property):
37 set(self
, name
, value
)
39 raise AttributeError("You cannot add instance attributes to %s" % self
)
40 return set_instance_attr
43 def _swig_setattr_nondynamic_class_variable(set):
44 def set_class_attr(cls
, name
, value
):
45 if hasattr(cls
, name
) and not isinstance(getattr(cls
, name
), property):
48 raise AttributeError("You cannot add class attributes to %s" % cls
)
52 def _swig_add_metaclass(metaclass
):
53 """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
55 return metaclass(cls
.__name
__, cls
.__bases
__, cls
.__dict
__.copy())
59 class _SwigNonDynamicMeta(type):
60 """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
61 __setattr__
= _swig_setattr_nondynamic_class_variable(type.__setattr
__)
65 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
="The membership flag")
68 def __init__(self
, *args
):
69 _pm3
.pm3_swiginit(self
, _pm3
.new_pm3(*args
))
70 __swig_destroy__
= _pm3
.delete_pm3
72 def console(self
, cmd
):
73 return _pm3
.pm3_console(self
, cmd
)
74 name
= property(_pm3
.pm3_name_get
)
76 # Register pm3 in _pm3:
77 _pm3
.pm3_swigregister(pm3
)