Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #54843
| Date | 2013-09-26 12:22 -0500 |
|---|---|
| From | Tim Chase <python.list@tim.thechases.com> |
| Subject | Re: Convert namedtuple to dictionary |
| References | <EEA0E0CD-6DDA-43F8-A121-A2E095FE7AE1@maansystems.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.363.1380216072.18130.python-list@python.org> (permalink) |
On 2013-09-26 16:42, Virendra Tripathi wrote: > Thx Tim. Your solution works. After Steven's reply, I recommend dict((k,v._asdict()) for k,v in d.iteritems()) which simplifies matters. -tkc
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Convert namedtuple to dictionary Tim Chase <python.list@tim.thechases.com> - 2013-09-26 12:22 -0500
csiph-web