Author: mattip <[email protected]>
Branch: object-dtype2
Changeset: r76362:ec15bfb10429
Date: 2015-03-13 16:10 +0200
http://bitbucket.org/pypy/pypy/changeset/ec15bfb10429/
Log: add a placeholder for gc customtrace function
diff --git a/pypy/module/micronumpy/concrete.py
b/pypy/module/micronumpy/concrete.py
--- a/pypy/module/micronumpy/concrete.py
+++ b/pypy/module/micronumpy/concrete.py
@@ -381,6 +381,9 @@
if storage == lltype.nullptr(RAW_STORAGE):
storage = dtype.itemtype.malloc(support.product(shape) *
dtype.elsize, zero=zero)
+ if dtype.num == NPY.OBJECT:
+ # Register a customtrace function for this storage
+ pass
ConcreteArrayNotOwning.__init__(self, shape, dtype, order, strides,
backstrides,
storage)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit