Skip to content

Commit 8553c10

Browse files
committed
merged from HEAD
[SVN r35429]
1 parent 315c3d5 commit 8553c10

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/numeric.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ namespace aux
205205
, bool savespace
206206
, object typecode)
207207
{
208-
return attr("array")(buffer, type, shape, copy, savespace, typecode);
208+
return attr("factory")(buffer, type, shape, copy, savespace, typecode);
209209
}
210210

211211
object array_base::getflat() const

test/numpy.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ def _numarray_tests():
8787
>>> check(y);
8888
>>> check(y.type());
8989
90-
>>> check(y.array((1.2, 3.4)));
91-
>>> check(y.array((1.2, 3.4), "Double"));
92-
>>> check(y.array((1.2, 3.4), "Double", (1,2,1)));
93-
>>> check(y.array((1.2, 3.4), "Double", (2,1,1), false));
94-
>>> check(y.array((1.2, 3.4), "Double", (2,), true, true));
90+
>>> check(y.factory((1.2, 3.4)));
91+
>>> check(y.factory((1.2, 3.4), "Double"));
92+
>>> check(y.factory((1.2, 3.4), "Double", (1,2,1)));
93+
>>> check(y.factory((1.2, 3.4), "Double", (2,1,1), false));
94+
>>> check(y.factory((1.2, 3.4), "Double", (2,), true, true));
9595
9696
>>> p.results
9797
[]

0 commit comments

Comments
 (0)