Commit ef42aa43 authored by serge-sans-paille's avatar serge-sans-paille Committed by GitHub

Use a generic shape accessor for pythranized array (GH-3762)

This is a follow up to https://github.com/cython/cython/pull/3307
parent 206adb43
...@@ -57,7 +57,7 @@ auto __Pyx_pythran_to_python(T &&value) -> decltype(to_python( ...@@ -57,7 +57,7 @@ auto __Pyx_pythran_to_python(T &&value) -> decltype(to_python(
return to_python(returnable_type{std::forward<T>(value)}); return to_python(returnable_type{std::forward<T>(value)});
} }
#define __Pyx_PythranShapeAccessor(x) (x.shape().array()) #define __Pyx_PythranShapeAccessor(x) (pythonic::builtins::getattr(pythonic::types::attr::SHAPE{}, x))
////////////// MoveIfSupported.proto ////////////////// ////////////// MoveIfSupported.proto //////////////////
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment