pyccel.ast.utilities module#
- class pyccel.ast.utilities.LoopCollection(body, length, modified_vars)#
Bases:
tuple
- body#
Alias for field number 0
- length#
Alias for field number 1
- modified_vars#
Alias for field number 2
- pyccel.ast.utilities.builtin_import(expr)[source]#
Return a Pyccel-extension function/object from an import of a recognised module.
Examine an Import object which imports something which is recognised by Pyccel internally. The object(s) imported are then returned for use in the code.
- Parameters:
expr (Import) – The expression which imports the module.
- Returns:
A list of 2-tuples. The first element is the name of the imported object, the second element is the object itself.
- Return type:
list