working with pointers

Michael slick_mick_00 at hotmail.com
Tue May 31 15:02:30 EDT 2005


except numbers??

"Dave Brueck" <dave at pythonapocrypha.com> wrote in message
news:mailman.299.1117566077.18027.python-list at python.org...
> 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





More information about the Python-list mailing list