No copies of objects are ever made in Python using the assignment
operator (generally speaking at least... attribute access is a
different can of fish). Unlike in other programming languages you
cannot modify the functionality of the assignment operator. It simply
binds names to variables; that is all.

Paul

On Sun, Sep 21, 2008 at 11:32 AM, Grissiom <[EMAIL PROTECTED]> wrote:
> Hi, all,
>
> If I do some thing like this:
>
> im=QImage()
> im.load("some.png")
> im2=im
> def fun(in):
>     im3=in
> fun(im)
>
> Then the im2 and im3 is only a referance of im or a copy of it?
>
> --
> Cheers,
> Grissiom
>
> _______________________________________________
> PyQt mailing list    [email protected]
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to