Python Written in C?

castironpi castironpi at
Wed Jul 23 18:42:29 CEST 2008

On Jul 23, 9:11 am, Marc 'BlackJack' Rintsch <bj_... at> wrote:
> On Wed, 23 Jul 2008 14:10:22 +0200, mk wrote:
> > Marc 'BlackJack' Rintsch wrote:
> >> I can't even remember when I deleted something from a list in the past.
> > Still, doesn't that strike you as.. workaround?
> No, I find it actually safer; I don't have to care where modifications of
> the list might be seen elsewhere in the program.
> Ciao,
>         Marc 'BlackJack' Rintsch

a[:]= newlist


a= newlist

have two completely different effects, and one is just as safe as
'del'.  Besides, del isn't safe to be seen elsewhere in the program in
other threads, if they aren't locking the GIL.

More information about the Python-list mailing list