Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Usual way: `defaultdict(lambda: defaultdict(list))`
- But sometimes you get in trouble when pickle can not serialize dict with lambda
- So you can use: `defaultdict(defaultdict(list).copy)`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement