Why does one work, but not the other?

Robert Brewer fumanchu at amor.org
Fri Jun 18 00:10:28 EDT 2004


j_mckitrick wrote:
>         self.liststore = [[item] for item in data]
> I get an empty list!  What gives??

Dunno--I don't get an empty list.

>>> data = [1,2,3]
>>> [[item] for item in data]
[[1], [2], [3]]

Seems the problem lies elsewhere...


Robert Brewer
MIS
Amor Ministries
fumanchu at amor.org





More information about the Python-list mailing list