var or inout parm?

Aaron Brady castironpi at gmail.com
Sat Dec 13 15:33:34 EST 2008


On Dec 12, 7:31 am, Steve Holden <st... at holdenweb.com> wrote:
> sturlamolden wrote:
> > On Dec 12, 1:56 pm, sturlamolden <sturlamol... at yahoo.no> wrote:
>
> >> That is because integers are immutable. When x += 1 is done on an int,
> >> there will be a rebinding. But try the same on say, a numpy array, and
> >> the result will be different:
snip

> This was all thrashed out exhaustively in the still-feared call
> semantics thread. Yes, augmented operations work differently on mutable
> and immutable objects. Nothing to see here, move right along ...

Lol!  <continues to read thread>



More information about the Python-list mailing list