Remove the specified key and return the corresponding value. If key is not found, default is returned if given, otherwise KeyError is raised.
(self, key, default=missing)
| 336 | del self._data[key] |
| 337 | |
| 338 | def pop(self, key, default=missing): |
| 339 | """Remove the specified key and return the corresponding value. |
| 340 | |
| 341 | If key is not found, default is returned if given, otherwise |
| 342 | KeyError is raised. |
| 343 | """ |
| 344 | if not self.loaded: |
| 345 | self.load() |
| 346 | if default is missing: |
| 347 | return self._data.pop(key) |
| 348 | else: |
| 349 | return self._data.pop(key, default) |
| 350 | |
| 351 | def __contains__(self, key): |
| 352 | if not self.loaded: |