(self)
| 1194 | return self |
| 1195 | |
| 1196 | def __copy__(self): |
| 1197 | inst = self.__class__.__new__(self.__class__) |
| 1198 | inst.__dict__.update(self.__dict__) |
| 1199 | # Create a copy and avoid triggering descriptors |
| 1200 | inst.__dict__["data"] = self.__dict__["data"].copy() |
| 1201 | return inst |
| 1202 | |
| 1203 | def copy(self): |
| 1204 | if self.__class__ is UserDict: |