Retrieves a crash from the container. @type key: L{Crash} unique key. @param key: Key of the crash to get. @rtype: L{Crash} object. @return: Crash matching the given key. @see: L{iterkeys} @warning: A B{copy} of each object is returne
(self, key)
| 1525 | del self[crash.key()] |
| 1526 | |
| 1527 | def get(self, key): |
| 1528 | """ |
| 1529 | Retrieves a crash from the container. |
| 1530 | |
| 1531 | @type key: L{Crash} unique key. |
| 1532 | @param key: Key of the crash to get. |
| 1533 | |
| 1534 | @rtype: L{Crash} object. |
| 1535 | @return: Crash matching the given key. |
| 1536 | |
| 1537 | @see: L{iterkeys} |
| 1538 | @warning: A B{copy} of each object is returned, |
| 1539 | so any changes made to them will be lost. |
| 1540 | |
| 1541 | To preserve changes do the following: |
| 1542 | 1. Keep a reference to the object. |
| 1543 | 2. Delete the object from the set. |
| 1544 | 3. Modify the object and add it again. |
| 1545 | """ |
| 1546 | skey = self.marshall_key(key) |
| 1547 | data = self.__db[skey] |
| 1548 | crash = self.unmarshall_value(data) |
| 1549 | return crash |
| 1550 | |
| 1551 | def __getitem__(self, key): |
| 1552 | """ |
no test coverage detected