Re: [Tutor] Python3 Tutorial question about a[:] = []

2011-02-16 Thread Richard D. Moores
On Wed, Feb 16, 2011 at 09:50, Brett Ritter wrote: > On Wed, Feb 16, 2011 at 12:39 PM, Richard D. Moores > wrote: >> from : >> > # Clear the list: replace all items with an empty list > a[:] = [] > a >> [] >> >> I've been

Re: [Tutor] Python3 Tutorial question about a[:] = []

2011-02-16 Thread Brett Ritter
On Wed, Feb 16, 2011 at 12:39 PM, Richard D. Moores wrote: > from : > # Clear the list: replace all items with an empty list a[:] = [] a > [] > > I've been using a = [] a > [] > > What's the difference? a = []