[Numpy-tickets] [NumPy] #528: select changes choicelist as side effect

NumPy numpy-tickets@scipy....
Mon May 28 05:06:07 CDT 2007


#528: select changes choicelist as side effect
-----------------------+----------------------------------------------------
 Reporter:  markmat    |       Owner:  somebody
     Type:  defect     |      Status:  new     
 Priority:  normal     |   Milestone:          
Component:  numpy.lib  |     Version:  1.0.2   
 Severity:  normal     |    Keywords:          
-----------------------+----------------------------------------------------
 select() changes choicelist as side effect. Example:


 {{{
 >>> condlist = [zeros((4,6), int) for i in range(3)]
 >>> choicelist = [zeros((4,6)) for i in range(3)]
 >>> print len(condlist), len(choicelist)
 3 3
 >>> result = numpy.select(condlist, choicelist)
 >>> print len(condlist), len(choicelist)
 3 4
 }}}

 I running Windows XP, Python 2.4.3, Numpy 1.0.2

-- 
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/528>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list