Guest User

Untitled

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