Skip to content

Issue parsing array of mixed types (string + array) #1033

@nekromoff

Description

@nekromoff
File "~/.local/lib/python3.10/site-packages/toml/decoder.py", line 1002, in load_array
a[b] = a[b] + ',' + a[b + 1]
IndexError: list index out of range

Array in .toml:

ping = ["/usr/bin/ping -c4 8.8.8.8", ["packets", "rtt"] ]

Per documentation:
"# Mixed-type arrays are allowed"
https://toml.io/en/v1.0.0#array

So:

  1. Are mixed array types really allowed?
  2. Is this bug of TOML parser in Python and should be reported to that repo?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions