Closed CGamesPlay closed 3 months ago
>>> import tomlkit >>> child = tomlkit.table() >>> child.add(tomlkit.key(("b", "c")), 1) {'b': {'c': 1}} >>> tbl = tomlkit.table() >>> tbl.add("a", child) {'a': {'b': {'c': 1}}} >>> tbl.as_string() 'b.c = 1\n' >>> child.is_super_table() True
Here the "a" level has been dropped, because child was classified as a super table. Using child = tomlkit.table(False) has the correct behavior.
child
child = tomlkit.table(False)
Here the "a" level has been dropped, because
child
was classified as a super table. Usingchild = tomlkit.table(False)
has the correct behavior.