Python Written in C?

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Wed Jul 23 19:10:58 CEST 2008


On Wed, 23 Jul 2008 09:42:29 -0700, castironpi wrote:

> On Jul 23, 9:11 am, Marc 'BlackJack' Rintsch <bj_... at gmx.net> 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
> 
> and
> 
> 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.

As usual you are talking nonsense…

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list