Steven D'Aprano írta: > On Tue, 09 Oct 2007 21:25:38 +0200, Laszlo Nagy wrote: > > >> a = 1 >> a+= 1 # The compiler will probably optimize this and the Python bytecode >> interpreter will not rebind 'a' here, just increment the integer in >> memory. >> > > No. This is Python, not C. You can't increment integers in memory. > What? Please read my post. I was talking about __implementation level__, clearly. :-) -- http://mail.python.org/mailman/listinfo/python-list
- Re: Static variable vs Class variable Laszlo Nagy
- Re: Static variable vs Class variable paul . melis
- Re: Static variable vs Class variable Marc 'BlackJack' Rintsch
- Re: Static variable vs Class variable Duncan Booth
- Re: Static variable vs Class variabl... paul . melis
- Re: Static variable vs Class var... Duncan Booth
- Re: Static variable vs Clas... paul . melis
- Re: Static variable vs ... Hrvoje Niksic
- Re: Static variable... Duncan Booth
- Re: Static variable... Hrvoje Niksic
- Re: Static variable... Marc 'BlackJack' Rintsch