On Thu, Apr 18, 2013 at 11:58 PM, inshu chauhan <insidesh...@gmail.com> wrote:
> segments.setdefault(reg_num, [])[point] += point

Not sure what your desired structure is. This is seeking to add the
point to something indexed by the point; perhaps you simply want to
append to the list itself?

segments.setdefault(reg_num, []).append(point)

ChrisA
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to