MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / get

Method get

pydevd_attach_to_process/winappdbg/crash.py:1527–1549  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 """

Callers 3

__getitem__Method · 0.95
fetch_extra_dataMethod · 0.45
nextMethod · 0.45

Calls 2

marshall_keyMethod · 0.95
unmarshall_valueMethod · 0.95

Tested by

no test coverage detected