A while back Colin Williams suggested that we change the parameter order of numarray.objects.ObjectArray from: def __init__(self, shape=None, objects=None, rank=None) to: def __init__(self, objects=None, shape=None, rank=None) The new order emphasizes building object arrays from existing sequences, while the old order emphasizes building empty (full of None) object arrays of a specific shape. Since array() and fromlist() already exist to build from sequences, I thought it was fine to keep the order as is, plus I hate breaking s/w interfaces unless it was my idea. :-) Opinions please? Regards, Todd
Todd Miller wrote:
A while back Colin Williams suggested that we change the parameter order of numarray.objects.ObjectArray from:
def __init__(self, shape=None, objects=None, rank=None)
to:
def __init__(self, objects=None, shape=None, rank=None)
The new order emphasizes building object arrays from existing sequences, while the old order emphasizes building empty (full of None) object arrays of a specific shape. Since array() and fromlist() already exist to build from sequences, I thought it was fine to keep the order as is, plus I hate breaking s/w interfaces unless it was my idea. :-)
Opinions please?
+1 (for the second option) -- Paul Barrett, PhD Space Telescope Science Institute Phone: 410-338-4475 ESS/Science Software Branch FAX: 410-338-4767 Baltimore, MD 21218
A Dijous 24 Juny 2004 20:16, Todd Miller va escriure:
A while back Colin Williams suggested that we change the parameter order of numarray.objects.ObjectArray from:
def __init__(self, shape=None, objects=None, rank=None)
to:
def __init__(self, objects=None, shape=None, rank=None)
The new order emphasizes building object arrays from existing sequences, while the old order emphasizes building empty (full of None) object arrays of a specific shape. Since array() and fromlist() already exist to build from sequences, I thought it was fine to keep the order as is, plus I hate breaking s/w interfaces unless it was my idea. :-)
Opinions please?
+1 for the second option -- Francesc Alted
participants (3)
-
Francesc Alted
-
Paul Barrett
-
Todd Miller