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

Anthony Briggs anthony.briggs at gmail.com
Thu Feb 20 23:52:21 CET 2014


Yep, just realised that - if it's stored as a list of key, value pairs.


On 21 February 2014 09:45, William ML Leslie
<william.leslie.ttg at gmail.com>wrote:

>
> 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)
>
> _______________________________________________
> melbourne-pug mailing list
> melbourne-pug at python.org
> https://mail.python.org/mailman/listinfo/melbourne-pug
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/melbourne-pug/attachments/20140221/9465df50/attachment.html>


More information about the melbourne-pug mailing list