Procedures

ProcedureLocationProcedure TypeDescription
assign_pyforpy_modInterface

Creates a new reference to an object. Python equivalent: lhs = rhs Do not forget to destroy lhs after use.

bytes_createforpy_modInterface

Creates a bytes object from Fortran character string or character array.

call_pyforpy_modInterface

Interface to call a Python objects (methods or other callables) Arguments (optional) have to be passed as tuple. Keyword arguments (optional) have to be passed as dict.

call_py_noretforpy_modInterface

Interface to call a Python objects (methods or other callables), ignoring the return value. Arguments (optional) have to be passed as tuple. Keyword arguments (optional) have to be passed as dict.

castforpy_modInterface

Casts/Transforms between Fortran and Python datatypes

cast_nonstrictforpy_modInterface

Non-strict casts/transforms between Fortran and Python datatypes

dict_createforpy_modFunction

Creates an empty Python dictionary. Python: r = {}

err_clearforpy_modSubroutine

Clears an exception.

err_printforpy_modSubroutine

Prints and clears exception. If no exception has occurred, does nothing.

exception_matchesforpy_modFunction

Checks if a certain type of exception has occurred.

forpy_finalizeforpy_modSubroutine

Frees resources used by Python interpreter. Call when finished using forpy.

forpy_initializeforpy_modFunction

Initialisation of forpy module. Must be called before using forpy.

forpy_initialize_extforpy_modFunction
get_sys_pathforpy_modFunction

Getting the list of module search paths: sys.path

have_exceptionforpy_modFunction

returns .true. if an exception has occurred

import_pyforpy_modFunction

Import a Python module.

is_boolforpy_modFunction

Checks if object is a Python bool.

is_bytesforpy_modFunction

Checks if object is a Python bytes.

is_complexforpy_modFunction

Checks if object is a Python complex.

is_dictforpy_modFunction

Checks if object is a Python dict.

is_floatforpy_modFunction

Checks if object is a Python float.

is_intforpy_modFunction

Checks if object is a Python int

is_listforpy_modFunction

Checks if object is a Python list.

is_longforpy_modFunction

Checks if object is a Python long.

is_ndarrayforpy_modFunction

Checks if object is a Numpy array.

is_noneforpy_modFunction

Checks if object is a Python None.

is_nullforpy_modFunction

Returns true if object is a null-pointer internally. Object is not properly initialised then.

is_strforpy_modFunction

Checks if object is a Python str

is_tupleforpy_modFunction

Checks if object is a Python tuple.

is_unicodeforpy_modFunction

Checks if object is a Python unicode.

list_createforpy_modInterface

Creates a list. Create as empty list or from other object.

ndarray_createforpy_modInterface

Create a ndarray from a Fortran array. The ndarray will be a copy of the Fortran array.

ndarray_create_emptyforpy_modInterface

Creates an empty ndarray of given shape. Array contains uninitialised values.

ndarray_create_nocopyforpy_modInterface

Create a ndarray wrapper for a Fortran array. NO copy is made, changes to the Fortran array affect the ndarray and vice versa.

ndarray_create_onesforpy_modInterface

Creates a ndarray of ones.

ndarray_create_zerosforpy_modInterface

Creates a ndarray of zeroes.

NoneType_createforpy_modFunction

Creates a Python None.

print_pyforpy_modFunction

Python's print function.

raise_exceptionforpy_modSubroutine

raises an exception

run_stringforpy_modFunction

Run Python code that is given as string.

str_createforpy_modInterface

Creates a str object from Fortran character string or character array.

tuple_createforpy_modInterface

Creates a tuple with a given number of items.

unicode_createforpy_modInterface

Creates a unicode string from Fortran character string or character array.

unsafe_cast_from_c_ptrforpy_modSubroutine

Creates an object from a type(c_ptr), no type checks