Roy Smith wrote: > Terry Hancock <[EMAIL PROTECTED]> wrote: > ... > I just re-read the documentation on the dict() constructor. Why does it > support keyword arguments? > > dict(foo="bar", baz="blah") ==> {"foo":"bar", "baz"="blah"} > > This smacks of creeping featurism. Is this actually useful in real code? Yes it's useful, and it grew organically from the keyword arg syntax. No new syntax was introduced to provide this; the existing syntax was used.
--Scott David Daniels [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list