2
0
mirror of https://github.com/boostorg/python.git synced 2026-02-01 20:52:13 +00:00

Fix long-standing misnaming of "factory" method as "array"

[SVN r35428]
This commit is contained in:
Dave Abrahams
2006-09-29 22:24:12 +00:00
parent 94500ae36d
commit 5ab00bc9c8
2 changed files with 6 additions and 6 deletions

View File

@@ -205,7 +205,7 @@ namespace aux
, bool savespace
, object typecode)
{
return attr("array")(buffer, type, shape, copy, savespace, typecode);
return attr("factory")(buffer, type, shape, copy, savespace, typecode);
}
object array_base::getflat() const

View File

@@ -87,11 +87,11 @@ def _numarray_tests():
>>> check(y);
>>> check(y.type());
>>> check(y.array((1.2, 3.4)));
>>> check(y.array((1.2, 3.4), "Double"));
>>> check(y.array((1.2, 3.4), "Double", (1,2,1)));
>>> check(y.array((1.2, 3.4), "Double", (2,1,1), false));
>>> check(y.array((1.2, 3.4), "Double", (2,), true, true));
>>> check(y.factory((1.2, 3.4)));
>>> check(y.factory((1.2, 3.4), "Double"));
>>> check(y.factory((1.2, 3.4), "Double", (1,2,1)));
>>> check(y.factory((1.2, 3.4), "Double", (2,1,1), false));
>>> check(y.factory((1.2, 3.4), "Double", (2,), true, true));
>>> p.results
[]