Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
nekromoff opened this issue Jul 8, 2024 · 1 comment
Closed

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

nekromoff opened this issue Jul 8, 2024 · 1 comment

Comments

@nekromoff
Copy link

nekromoff commented Jul 8, 2024

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?
@arp242
Copy link
Contributor

arp242 commented Jul 8, 2024

Is this bug of TOML parser in Python and should be reported to that repo?

Yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants