~ubuntu-branches/ubuntu/edgy/swig1.3/edgy

« back to all changes in this revision

Viewing changes to Runtime/swigrun.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2005-01-10 09:48:52 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050110094852-axi555axhj1brbwq
Tags: 1.3.22-5ubuntu2
Build using python2.4 and pike7.6. Closes: #4146.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# This file was created automatically by SWIG.
2
 
# Don't modify this file, modify the SWIG interface instead.
3
 
# This file is compatible with both classic and new-style classes.
4
 
 
5
 
import _swigrun
6
 
 
7
 
def _swig_setattr(self,class_type,name,value):
8
 
    if (name == "this"):
9
 
        if isinstance(value, class_type):
10
 
            self.__dict__[name] = value.this
11
 
            if hasattr(value,"thisown"): self.__dict__["thisown"] = value.thisown
12
 
            del value.thisown
13
 
            return
14
 
    method = class_type.__swig_setmethods__.get(name,None)
15
 
    if method: return method(self,value)
16
 
    self.__dict__[name] = value
17
 
 
18
 
def _swig_getattr(self,class_type,name):
19
 
    method = class_type.__swig_getmethods__.get(name,None)
20
 
    if method: return method(self)
21
 
    raise AttributeError,name
22
 
 
23
 
import types
24
 
try:
25
 
    _object = types.ObjectType
26
 
    _newclass = 1
27
 
except AttributeError:
28
 
    class _object : pass
29
 
    _newclass = 0
30
 
del types
31
 
 
32
 
 
33