[PYTHON MATRIX-SIG] bugs
James Hugunin
jjh@goldilocks.lcs.mit.edu
Wed, 22 May 96 11:05:34 EDT
Perry Stoll suggests a small bug in the where function, and he's of
course correct. The change has been made.
def where(condition, x, y):
"""where(condition,x,y) is shaped like condition and has elements of x and
y where condition is respectively true or false
"""
return condition.choose(y, x) # removed condition as first argument
This and similar functions will be retained in the great renaming that
is beginning even as we speak. They might, however, be moved to a shortcuts
module that wouldn't always be automatically loaded.
--
David Ascher's bug is a little more troublesome, but it too is being
fixed.
> Why should the type of the first argument to choose() be valued over the
> most generic type?
In short, it shouldn't, and it won't in the next release.
-Jim
=================
MATRIX-SIG - SIG on Matrix Math for Python
send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
=================