MCPcopy Create free account
hub / github.com/bloomberg/pystack / DictObject

Method DictObject

src/pystack/_pystack/pytypes.cpp:343–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341}
342
343DictObject::DictObject(std::shared_ptr<const AbstractProcessManager> manager, remote_addr_t addr)
344: d_manager(std::move(manager))
345{
346 // For now, the layout that we use here only allows us to get Python3.6+ dictionaries
347 // as dictionaries before that have much more variability and are much harder to get.
348
349 if (d_manager->versionIsAtLeast(3, 6)) {
350 loadFromPython3(addr);
351 } else if (d_manager->versionIsAtLeast(3, 0)) {
352 d_invalid = true;
353 } else {
354 loadFromPython2(addr);
355 }
356}
357
358void
359DictObject::loadFromPython3(remote_addr_t addr)

Callers

nothing calls this directly

Calls 1

versionIsAtLeastMethod · 0.80

Tested by

no test coverage detected