lad1337

Untitled

Jul 23rd, 2011
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1.  
  2. class a:
  3. def bar(self):
  4. self.maper["foo"](args) # this didnt work
  5. self.maper["foo"](self, args) # this does !
  6.  
  7. def test(self, args):
  8. pass
  9.  
  10. maper = {"foo":test} # no self here
Advertisement
Add Comment
Please, Sign In to add comment