Message147375
| Author |
ncoghlan |
| Recipients |
amaury.forgeotdarc, benjamin.peterson, krisys, ncoghlan, rhettinger |
| Date |
2011年11月09日.21:25:06 |
| SpamBayes Score |
9.6747644e-05 |
| Marked as misclassified |
No |
| Message-id |
<CADiSq7f+UWTugK3+eW1u1AYQCRNhaxjMW6GA=ouZyRyDz4hbzg@mail.gmail.com> |
| In-reply-to |
<1320865421.93.0.201299524101.issue13375@psf.upfronthosting.co.za> |
| Content |
Like any named tuple, the benefits lie in the better repr, and the fact
that if you only want some fields you don't have to unpack the whole tuple.
It's also easier to write variant APIs that add additional fields
accessible only by name. |
|