[SciPy-User] a=b operation in numpy

josef.pktd at gmail.com josef.pktd at gmail.com
Tue Jul 2 11:33:40 EDT 2013


On Tue, Jul 2, 2013 at 11:24 AM, Frédéric Parrenin
<parrenin.ujf at gmail.com> wrote:
> Dear all,
>
> Does anybody know what is the rational in defining for the 'a=b' operation a
> pointer copy and not a complete copy?
> It is inconsistent from an algebraic point of view, since 'a=b' is not the
> same as 'a=b+0'.
> And it is also confusing for starters.

python variables are references,
fortunately, we don't get copying of data all the time like some other
(special purpose) languages

http://forums.udacity.com/questions/8767/python-variables-are-they-really-pointers

Josef
>
> Best regards,
>
> Frédéric Parrenin
>
>
>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>



More information about the SciPy-User mailing list