Пример #1
0
 def set_context(self, ctx):
     if ctx == ast.Store:
         misc.check_forbidden_name(self.id, self)
     self.ctx = ctx
Пример #2
0
 def set_context(self, ctx):
     if ctx == ast.Store:
         misc.check_forbidden_name(self.id, self)
     self.ctx = ctx
Пример #3
0
 def set_context(self, space, ctx):
     if ctx == ast.Store:
         misc.check_forbidden_name(space, self.attr, self)
     self.ctx = ctx