MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / clear

Method clear

pager_lib/pyasn1/type/univ.py:2306–2314  ·  view source on GitHub ↗

Remove all components and become an empty |ASN.1| value object. Has the same effect on |ASN.1| object as it does on :class:`dict` built-in.

(self)

Source from the content-addressed store, hash-verified

2304 self[k] = mappingValue[k]
2305
2306 def clear(self):
2307 """Remove all components and become an empty |ASN.1| value object.
2308
2309 Has the same effect on |ASN.1| object as it does on :class:`dict`
2310 built-in.
2311 """
2312 self._componentValues = []
2313 self._dynamicNames = self.DynamicNames()
2314 return self
2315
2316 def reset(self):
2317 """Remove all components and become a |ASN.1| schema object.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected