Re: working with pointers
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: working with pointers

From: Michael <slick_mick_00@hotmail.com>
Date: Tue May 31 2005 - 21:02:30 CEST

except numbers??

"Dave Brueck" <dave@pythonapocrypha.com> wrote in message
news:mailman.299.1117566077.18027.python-list@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
Received on Thu Sep 29 16:17:21 2005