This feature is far more useful in JS because JS objects double up as mappings - Python dataclasses/attrs models/Pydantic models/named tuples/who knows what are all represented by (typed) objects in JS/TS. As soon as you want to describe your data e.g. by encoding it in a dataclass you'll no longer be able to dictionary-unpack it which will prove very frustrating. _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/BOTEVLGLW325Y26ZP2BLSZGUQIVZXLZV/ Code of Conduct: http://python.org/psf/codeofconduct/
- [Python-ideas] Mapping unpacking assignment Yurii Karabas
- [Python-ideas] Re: Mapping unpacking assig... Piper Thunstrom
- [Python-ideas] Re: Mapping unpacking a... Yurii Karabas
- [Python-ideas] Mapping unpacking assignmen... Stephen J. Turnbull
- [Python-ideas] Re: Mapping unpacking assig... Steven D'Aprano
- [Python-ideas] Re: Mapping unpacking assig... layday--- via Python-ideas
- [Python-ideas] Re: Mapping unpacking a... Chris Angelico
- [Python-ideas] Re: Mapping unpacki... layday--- via Python-ideas
- [Python-ideas] Re: Mapping unp... Chris Angelico
- [Python-ideas] Re: Mappin... layday--- via Python-ideas
- [Python-ideas] Re: Mapping unpacki... Christopher Barker
- [Python-ideas] Re: Mapping unp... Chris Angelico
- [Python-ideas] Re: Mappin... Christopher Barker
- [Python-ideas] Re: Ma... Chris Angelico
- [Python-ideas] Re... Eric V. Smith
- [Python-ideas] Re... Chris Angelico