[Python-ideas] Dictionary destructing and unpacking.

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Jun 8 02:32:40 EDT 2017


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



More information about the Python-ideas mailing list