Commit 77fc0ac3 authored by Stefan Behnel's avatar Stefan Behnel

Merge branch '0.27.x'

parents 1833eba8 74409491
...@@ -1475,7 +1475,7 @@ class CType(PyrexType): ...@@ -1475,7 +1475,7 @@ class CType(PyrexType):
class PythranExpr(CType): class PythranExpr(CType):
# Pythran object of a given type # Pythran object of a given type
to_py_function = "to_python_from_expr" to_py_function = "__Pyx_pythran_to_python"
is_pythran_expr = True is_pythran_expr = True
writable = True writable = True
has_attributes = 1 has_attributes = 1
......
...@@ -50,7 +50,7 @@ static void __Pyx_CppExn2PyErr() { ...@@ -50,7 +50,7 @@ static void __Pyx_CppExn2PyErr() {
/////////////// PythranConversion.proto /////////////// /////////////// PythranConversion.proto ///////////////
template <class T> template <class T>
auto to_python_from_expr(T &&value) -> decltype(to_python( auto __Pyx_pythran_to_python(T &&value) -> decltype(to_python(
typename pythonic::returnable<typename std::remove_cv<typename std::remove_reference<T>::type>::type>::type{std::forward<T>(value)})) typename pythonic::returnable<typename std::remove_cv<typename std::remove_reference<T>::type>::type>::type{std::forward<T>(value)}))
{ {
using returnable_type = typename pythonic::returnable<typename std::remove_cv<typename std::remove_reference<T>::type>::type>::type; using returnable_type = typename pythonic::returnable<typename std::remove_cv<typename std::remove_reference<T>::type>::type>::type;
......
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