Skip to content

Another list index out of range #227

@HolQue

Description

@HolQue

The code

"keyP"     : "A",
"B"        : 1,
"dictP"    : {"A" : "B", "C" : 2},
"newparam" : "${${dictP}['${keyP}']}"

results in newparam with string value '1' (like expected).

But when I omit the single quotes

"newparam" : "${${dictP}[${keyP}]}"

the result is:

'list index out of range'!

But expected is still newparam with string value '1' (because keyP is a string already, therefore the single quotes
do not have any effect)

Metadata

Metadata

Assignees

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions