[Python-ideas] Dictionary destructing and unpacking.
Lucas Wiman
lucas.wiman at gmail.com
Thu Jun 8 02:53:21 EDT 2017
>
> 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.ewing at 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 at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20170607/da593ba4/attachment.html>
More information about the Python-ideas
mailing list