pytoml icon indicating copy to clipboard operation
pytoml copied to clipboard

Dotted keys

Open takluyver opened this issue 7 years ago • 4 comments

a.b.c = 1

# Equivalent to:
[a.b]
c = 1

This is a new feature added to what's going to become TOML 1.0: https://github.com/toml-lang/toml/pull/505

Of course, TOML 1.0 is not released yet, and pytoml currently declares itself a TOML 0.4.0 parser. So it's not a bug that this doesn't work. But I hope that we can update pytoml once the new spec version is finalised. :-)

takluyver avatar May 29 '18 14:05 takluyver

Thanks for the issue! I'm not adding new features anymore, but I accept PRs if you want to take a stab at it.

avakar avatar May 30 '18 08:05 avakar

Thanks, I may do that once 1.0 is official.

takluyver avatar May 30 '18 08:05 takluyver

This is a part of TOML 0.5 now. :)

@takluyver Do you want to try giving this a shot at implementation?

pradyunsg avatar Jul 28 '18 16:07 pradyunsg

I'm happy to in principle, but it may be a long time before I get to it, so if anyone else wants to do it, don't wait for me.

takluyver avatar Jul 28 '18 16:07 takluyver