FakeCode Class
Fake code object that implements enough to make traceback logging work.
Create a new FakeCode.
- Inheritance
-
builtins.objectFakeCode
Constructor
FakeCode(f_code: code)
Parameters
Name | Description |
---|---|
f_code
Required
|
|
Methods
deserialize |
Deserialize this object from a dict. |
serialize |
Serialize this object to a dict. |
deserialize
Deserialize this object from a dict.
deserialize(d: Dict[str, Any] | None) -> FakeCode | None
Parameters
Name | Description |
---|---|
d
Required
|
|
serialize
Serialize this object to a dict.
serialize() -> Dict[str, Any]