[issue9932] List of sets initialization behavior problems

2010-09-23 Thread Eric Smith
Eric Smith added the comment: This is well defined in Python and will not change. -- nosy: +eric.smith resolution: -> rejected stage: -> committed/rejected status: open -> closed type: -> feature request ___ Python tracker

[issue9932] List of sets initialization behavior problems

2010-09-23 Thread Adam Nemecek
New submission from Adam Nemecek : I'm not sure if this is the intended behavior, but it seems unusual to me. a = [set([]) for i in range(2)] evaluates to a list [set([]),set([])] and b= 2*[set([])] evaluates to [set([]),set([])]. Nothing wrong here. Nevertheless, if I do a[0].add(1), a has the