equal
deleted
inserted
replaced
54 |
54 |
55 |
55 |
56 def attr(default=NOTHING, validator=None, |
56 def attr(default=NOTHING, validator=None, |
57 repr=True, cmp=True, hash=None, init=True, |
57 repr=True, cmp=True, hash=None, init=True, |
58 convert=None, metadata={}): |
58 convert=None, metadata={}): |
59 """ |
59 r""" |
60 Create a new attribute on a class. |
60 Create a new attribute on a class. |
61 |
61 |
62 .. warning:: |
62 .. warning:: |
63 |
63 |
64 Does *not* do anything unless the class is also decorated with |
64 Does *not* do anything unless the class is also decorated with |