(self, name, value)
| 85 | return newpolicy |
| 86 | |
| 87 | def __setattr__(self, name, value): |
| 88 | if hasattr(self, name): |
| 89 | msg = "{!r} object attribute {!r} is read-only" |
| 90 | else: |
| 91 | msg = "{!r} object has no attribute {!r}" |
| 92 | raise AttributeError(msg.format(self.__class__.__name__, name)) |
| 93 | |
| 94 | def __add__(self, other): |
| 95 | """Non-default values from right operand override those from left. |