pb_client.compile.CompiledProgram
dataclass
¶
CompiledProgram(modules)
A compiled program, not yet in the form the hub stores.
Compiling and packing are separate because the entry module's name depends on the hub, and the hub is not known when compiling starts. Nothing else does: the compiler is told the file's name, for tracebacks, and never the module's. So a program can be compiled before anything is connected to -- which keeps a syntax error a local failure, reported without a hub having to be found first -- and named once the hub has said which profile it speaks.
Methods¶
pack-- Build the bytes to store on the hub.
Attributes¶
modules-- Every module, entry first.