(self, name, value)
| 76 | return newpolicy |
| 77 | |
| 78 | def __setattr__(self, name, value): |
| 79 | if hasattr(self, name): |
| 80 | msg = "{!r} object attribute {!r} is read-only" |
| 81 | else: |
| 82 | msg = "{!r} object has no attribute {!r}" |
| 83 | raise AttributeError(msg.format(self.__class__.__name__, name)) |
| 84 | |
| 85 | def __add__(self, other): |
| 86 | """Non-default values from right operand override those from left. |