pyccel.utilities.stage module#

File containing information about which treatment stage Pyccel is executing

class pyccel.utilities.stage.PyccelStage(self)[source]#

Bases: object

Class wrapping a string indicating which treatment stage Pyccel is executing.

Class wrapping a string indicating which treatment stage Pyccel is executing. This string is one of:

  • syntactic

  • semantic

  • codegen

  • cwrapper

When Pyccel is not executing the stage is None.

property current_stage#

Get the current stage as a string.

Returns one of: - syntactic - semantic - codegen - cwrapper indicating the current stage.

pyccel_finished()[source]#

Indicate that Pyccel has finished running and reset stage to None

set_stage(stage)[source]#

Set the current treatment stage