Guest User

Untitled

a guest
Apr 20th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. class webthing:
  2.  
  3. def __init__( self,**kwargs):
  4. setup(**kwargs); <------ How to just stick all those args into this when I call setup()?
  5.  
  6. def setup(self, host = DEFAULT_HOST,
  7. port = DEFAULT_PORT,
  8. user = DEFAULT_USER,
  9. pass = DEFAULT_PASS):
  10. print host;
  11. print port;
  12. print user;
  13. print pass;
  14. # do setup stuff
Add Comment
Please, Sign In to add comment