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

Method add

pydevd_attach_to_process/winappdbg/crash.py:1491–1505  ·  view source on GitHub ↗

Adds a new crash to the container. If the crash appears to be already known, it's ignored. @see: L{Crash.key} @type crash: L{Crash} @param crash: Crash object to add.

(self, crash)

Source from the content-addressed store, hash-verified

1489 return self.__CrashContainerIterator(self)
1490
1491 def add(self, crash):
1492 """
1493 Adds a new crash to the container.
1494 If the crash appears to be already known, it's ignored.
1495
1496 @see: L{Crash.key}
1497
1498 @type crash: L{Crash}
1499 @param crash: Crash object to add.
1500 """
1501 if crash not in self:
1502 key = crash.key()
1503 skey = self.marshall_key(key)
1504 data = self.marshall_value(crash, storeMemoryMap=True)
1505 self.__db[skey] = data
1506
1507 def __delitem__(self, key):
1508 """

Callers 2

addMethod · 0.45
addMethod · 0.45

Calls 3

marshall_keyMethod · 0.95
marshall_valueMethod · 0.95
keyMethod · 0.80

Tested by

no test coverage detected