Christian Witts wrote:
Todd Matsumoto wrote:
Hello,
The other day I needed to pack a dictionary, the value of each key
was a list. In the code I was packing the list and the dictionary at
the same time. First I tried something like this:
list = []
dict = {}
x = 1
dict['int'] = list.append(
On Tue, Jul 14, 2009 at 2:58 AM, Todd Matsumoto wrote:
> Hello,
>
> The other day I needed to pack a dictionary, the value of each key was a
> list. In the code I was packing the list and the dictionary at the same time.
> First I tried something like this:
>
> list = []
> dict = {}
> x = 1
>
> d
Todd Matsumoto wrote:
Hello,
The other day I needed to pack a dictionary, the value of each key was a list.
In the code I was packing the list and the dictionary at the same time. First I
tried something like this:
list = []
dict = {}
x = 1
dict['int'] = list.append(x)
The result was {'int'
> The other day I needed to pack a dictionary, the value of each key was a
> list. In the code I was packing the list and the dictionary at the same time.
> First I tried something like this:
>
> list = []
> dict = {}
> x = 1
>
> dict['int'] = list.append(x)
>
> The result was {'int': None}. Why
Hello,
The other day I needed to pack a dictionary, the value of each key was a list.
In the code I was packing the list and the dictionary at the same time. First I
tried something like this:
list = []
dict = {}
x = 1
dict['int'] = list.append(x)
The result was {'int': None}. Why is the valu