Skip to content

Instantly share code, notes, and snippets.

@sivabudh
Created May 11, 2016 12:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sivabudh/891c401a90ba39f326accef265b56f85 to your computer and use it in GitHub Desktop.
Save sivabudh/891c401a90ba39f326accef265b56f85 to your computer and use it in GitHub Desktop.
class Person:
def __init__(self, kargs, tup, *argv, **kwargs):
import pdb;
pdb.set_trace()
self.name = kwargs['name']
self.shirt_size = kwargs['shirt_size']
def __str__(self):
return "{} -> {}".format(self.name, self.shirt_size)
p1 = Person({}, {}, 3, 2, 1, name="Ju", shirt_size="S")
args = {
"name": "Pac",
"shirt_size": "XL",
}
print(p1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment