{ } Raw JSON

bundles / papyri 0.0.10 / papyri / nodes / Code

class

papyri.nodes:Code

source: /papyri/nodes.py :380

Signature

class   Code ( value : str execution_status : str | None = None out : str = '' )  →  None

Members

Summary

Block-level fenced code, optionally executed.

Extended Summary

execution_status is None when the block was not run, or a string status (e.g. "ok", "error") when the gen step executed the example. out holds captured stdout/stderr from execution.

Aliases

  • papyri.examples.Code