fabiocaccamo / python-benedict

:blue_book: dict subclass with keylist/keypath support, built-in I/O operations (base64, csv, html, ini, json, pickle, plist, query-string, toml, xls, xml, yaml), s3 support and many utilities.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

setting value of dict element inside a list

ponders opened this issue · comments

should this work?

d = benedict()
d['a'] = '1'
d['b[1]'] = 'quote'
d['c.d[3]'] = 'mote'
d['e.f[4].g'] = 'note'

The last line d['e.f[4].g'] = 'note' throws an exception

@ponders thank you for reporting this bug, you can upgrade to 0.25.3 version.

Thanks, @fabiocaccamo! That's working great for me.