Charles Krug wrote:
I'm working on some methods that operate on (mathematical) vectors as in:
def Convolution(x, y) """Returns a list containing the convolution of vectors x and y"""
Is there any way to determine at runtime that x and y are iterible collections?
Do I *coughs* simply *coughs* trap the exception created by:
for v in x:
when v is a scaler quantity?
why not leave trapping exceptions to whoever uses your function?
</F>
-- http://mail.python.org/mailman/listinfo/python-list