> But you'd need to decide whether you want attributes (spam.x, spam.y) or items (spam["x"], spam["y"]). Both would be useful at different times.
ChrisA If something like this was ever added, it'd probably be items, then you could implement a custom __unpack__ (or whatever name it'd be) method that would return a dict.
_______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/