typevalue_tprivate
A Python value.
Components
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
| items | type(value_t) | allocatabledimension(:) | the items of a list or tuple, or a dict's keys and values in turn | |
| kind | integer | V_NONE | what it is | |
| number | integer | 0 | the integer, the truth of a bool, or the macro | |
| text | character(len=:) | allocatable | the string |
Type-bound procedures
| Name | Binds to | Attributes | Description |
|---|---|---|---|
| assignment(=) | copy_value | generic | a deep copy, which gfortran gets wrong for a recursive type |
| copy_value | copy_value | private | Copy a value, with what it holds. |
Where it is used
Argument of (31)
Show all
- arithmetic
- assign_targets
- bind_one
- bind_targets
- call_builtin
- call_macro
- call_method
- compare
- compare_two
- copy_items
- define
- equal
- evaluate
- evaluate_args
- evaluate_call
- evaluate_fstring
- evaluate_slice
- format_string
- items_of
- lookup
- make_bool
- make_int
- make_range
- make_string
- make_zip
- move_value
- run_clause
- split_string
- subscript
- truth_of
- write_value
Component of (4)
Inherited by
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