Ejemplo n.º 1
0
 def __getattr__(self, name):
     if name == "s":
         return dparser_swigc.my_d_loc_t_s_get(self.this, self.d_parser)
     if name == "pathname":
         return dparser_swigc.d_loc_t_pathname_get(self.this)
     if name == "previous_col":
         return dparser_swigc.d_loc_t_previous_col_get(self.this)
     if name == "col":
         return dparser_swigc.d_loc_t_col_get(self.this)
     if name == "line":
         return dparser_swigc.d_loc_t_line_get(self.this)
     raise AttributeError, name
Ejemplo n.º 2
0
 def __getattr__(self, name):
     if name == "s":
         return dparser_swigc.my_d_loc_t_s_get(self.this, self.d_parser)
     elif name in ["pathname", "previous_col", "col", "line", "ws"]:
         return self.this.__getattr__(name)
     raise AttributeError(name)
Ejemplo n.º 3
0
 def __getattr__(self, name):
     if name == "s" :
         return dparser_swigc.my_d_loc_t_s_get(self.this, self.d_parser)
     elif name in ["pathname", "previous_col", "col", "line", "ws"]:
         return self.this.__getattr__(name)
     raise AttributeError(name)