Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #25616
| From | esbatmop@gmail.com |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Which lib can diff two dict tree? |
| Date | 2012-07-19 02:51 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <b2000e25-8a8e-44bc-9895-9b406265578e@googlegroups.com> (permalink) |
Q1:
dict a:{'a1': 'b1', 'a2': {'b2': 'c2'}, 'a3': 'b3'}
dict b:{'a1': 'b1', 'a2': {'b2': 'c3'}}
which lib can diff two dict tree?
like:
print struct_diff(a,b)
>>tree 'a3'
print value_diff(a,b)
>>c3
Q2
How can I diff two json file?How can I get struct_diff and value_diff?
Q3
How can I diff two xml file? How can I get struct_diff and value_diff?
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Which lib can diff two dict tree? esbatmop@gmail.com - 2012-07-19 02:51 -0700 Re: Which lib can diff two dict tree? alex23 <wuwei23@gmail.com> - 2012-07-19 17:17 -0700
csiph-web