Skip to content

Instantly share code, notes, and snippets.

@Fusion86
Created October 3, 2016 11:48
Show Gist options
  • Save Fusion86/b44fc6b1d8d865141f5729ccab78f675 to your computer and use it in GitHub Desktop.
Save Fusion86/b44fc6b1d8d865141f5729ccab78f675 to your computer and use it in GitHub Desktop.
import sys
keys = sys.argv[2:]
print "class %s(object):\n def __init__(self, %s):" % (sys.argv[1], ', '.join(keys))
for key in keys:
print " self." + key + " = " + key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment