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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
[]
|
||||
|
||||
Reference in New Issue
Block a user