Re: working with pointers
- From: "Michael" <slick_mick_00@xxxxxxxxxxx>
- Date: Tue, 31 May 2005 19:02:30 +0000 (UTC)
except numbers??
"Dave Brueck" <dave@xxxxxxxxxxxxxxxxxxx> wrote in message
news:mailman.299.1117566077.18027.python-list@xxxxxxxxxxxxx
> Michael wrote:
> > sorry, I'm used to working in c++ :-p
> >
> > if i do
> > a=2
> > b=a
> > b=0
> > then a is still 2!?
> >
> > so when do = mean a reference to the same object
>
> Always.
>
> > and when does it mean make a copy of the object??
>
> Never.
>
> -Dave
.
- Follow-Ups:
- Re: working with pointers
- From: Grant Edwards
- Re: working with pointers
- From: Rocco Moretti
- Re: working with pointers
- References:
- working with pointers
- From: Michael
- Re: working with pointers
- From: Steven Bethard
- Re: working with pointers
- From: Michael
- Re: working with pointers
- From: Dave Brueck
- working with pointers
- Prev by Date: Re: working with pointers
- Next by Date: Re: working with pointers
- Previous by thread: Re: working with pointers
- Next by thread: Re: working with pointers
- Index(es):