> > Maps with a known, fixed set of keys are relatively uncommon > in Python, though.
This is false in interacting with HTTP services, where frequently you're working with deserialized JSON dictionaries you expect to be in a precise format (and fail if not). On Wed, Jun 7, 2017 at 11:32 PM, Greg Ewing <greg.ew...@canterbury.ac.nz> wrote: > C Anthony Risinger wrote: > >> Incredibly useful and intuitive, and for me again, way more generally >> applicable than iterable unpacking. Maps are ubiquitous. >> > > Maps with a known, fixed set of keys are relatively uncommon > in Python, though. Such an object is more likely to be an > object with named attributes. > > -- > Greg > > > _______________________________________________ > Python-ideas mailing list > Python-ideas@python.org > https://mail.python.org/mailman/listinfo/python-ideas > Code of Conduct: http://python.org/psf/codeofconduct/ >
_______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/