Skip to content

Instantly share code, notes, and snippets.

@MatheMatrix
Created December 23, 2013 12:47
Show Gist options
  • Save MatheMatrix/8096563 to your computer and use it in GitHub Desktop.
Save MatheMatrix/8096563 to your computer and use it in GitHub Desktop.
attr = {'name':'', 'gender':'', 'age':''}
def add_attr(clas):
clas.attr = attr
return clas
@add_attr
class Person(object):
"""docstring for Person"""
damon = Person()
print Person.attr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment