support recursive munching
See original GitHub issuefrom munch import Munch
d = {'hello_world': {'cooldown': 30,
'items_per_replica': 3,
'replicas': {'max': 6, 'min': 3}},
}
m = Munch(d)
m.hello_world.replicas.min
Traceback (most recent call last):
File "test.py", line 8, in <module>
m.hello_world.replicas.min
AttributeError: 'dict' object has no attribute 'replicas'
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:7
Top Results From Across the Web
Munch! Cycles in Linked Lists Binary Trees and Search Trees
The game of Munch! (and a recursive solution). • Data structures: • Cycles in linked (and regular) lists. • Finding cycles in linked...
Read more >print 1 to 10 recursive in python - YouTube
Code in Python to print 1 to 10 recursively. Support this channel, become a ... Lunch munch with Abida. Lunch munch with Abida....
Read more >Parsing Expression GLL - arXiv
Abstract. This paper presents an extension of the GLL parsing algorithm for context-free grammars which also supports parsing expression ...
Read more >Recursive Descent Parsing
-- some :: Parser a -> Parser [a] -- 1 or more times, maximum munch, collect the answers into a list. -- Can...
Read more >Efficient Deconstruction with Typed Pointer Reversal (abstract)
learning to implement simple recursive data structures such ... Appendix B. Since Rust does not support tail recursion, the.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@tobiasfielitz also pointing out there isn’t a “clear cut” correct behavior here… For example, in this example the user will not expect munch to convert recursively:
The original implementation didn’t support it, and since this is a project with very high exposure (being used in many projects as a very basic utility) I’m quite hesitant to break backwards compatibility here…