[Numpy-discussion] Copy/View data point

Alexander Schmolck a.schmolck at gmx.net
Wed Jun 26 06:30:04 CDT 2002


Bernard Frankpitt <frankpit at erols.com> writes:

> My preference would be
> 
> Copy semantics for  a=b
> View semantics for  a=b.view (or some other explicit syntax)


Although I have been arguing for copy semantics for a=b[c:d], what you want is
not really possible (a=b creates and always will create an alias in python --
and this is really a good design decision; just compare it to other languages
that do different things depending on what you are assigning).

alex


-- 
Alexander Schmolck     Postgraduate Research Student
                       Department of Computer Science
                       University of Exeter
A.Schmolck at gmx.net     http://www.dcs.ex.ac.uk/people/aschmolc/





More information about the Numpy-discussion mailing list