fdoc

typevalue_tprivate

A Python value.

Components

NameTypeAttributesDefaultDescription
itemstype(value_t)allocatabledimension(:)

the items of a list or tuple, or a dict's keys and values in turn

kindintegerV_NONE

what it is

numberinteger0

the integer, the truth of a bool, or the macro

textcharacter(len=:)allocatable

the string

Type-bound procedures

NameBinds toAttributesDescription
assignment(=)copy_valuegeneric

a deep copy, which gfortran gets wrong for a recursive type

copy_valuecopy_valueprivate

Source

Show the code
type :: value_t
    !! A Python value.
    integer :: kind = V_NONE                !! what it is
    integer :: number = 0                   !! the integer, the truth of a bool, or the macro
    character(len=:), allocatable :: text   !! the string
    type(value_t), allocatable :: items(:)  !! the items of a list or tuple, or a dict's keys and values in turn
contains
    procedure, private :: copy_value
    generic :: assignment(=) => copy_value  !! a deep copy, which gfortran gets wrong for a recursive type
end type value_t

Graphs

Inherited by

value_titemsexpr_tvaluemacro_tdefaults, valuesframe_tvaluesfypp_tglobals, bound_valuesexprsmacrosframes