[melbourne-pug] Question about adding members to list : hypothetical just for interest kind of question

William ML Leslie william.leslie.ttg at gmail.com
Thu Feb 20 23:45:59 CET 2014


On 21/02/2014 9:40 am, "Anthony Briggs" <anthony.briggs at gmail.com> wrote:
>
> You can also use the dict() function or dictionary comprehensions to
create your dictionary:
>   item = dict( (key, value) for key, value in list )
>

Otherwise written:
  item = dict(list)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/melbourne-pug/attachments/20140221/a42485d7/attachment.html>


More information about the melbourne-pug mailing list