From 3d451904110731fd138144e8df9670f32b1a05ba Mon Sep 17 00:00:00 2001
From: Kurt Smith <kwsmith1@wisc.edu>
Date: Sun, 9 Aug 2009 18:31:10 -0500
Subject: [PATCH] added array_cwrapper convenience function in CythonScope.py

---
 Cython/Compiler/CythonScope.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Cython/Compiler/CythonScope.py b/Cython/Compiler/CythonScope.py
index 52dc79472..2a2442c50 100644
--- a/Cython/Compiler/CythonScope.py
+++ b/Cython/Compiler/CythonScope.py
@@ -536,4 +536,8 @@ cdef class array:
             self.shape = NULL
         self.format = NULL
         self.itemsize = 0
+
+cdef array array_cwrapper(tuple shape, Py_ssize_t itemsize, char *format, char mode):
+    return array(shape, itemsize, format, mode)
+
 ''', prefix=cyarray_prefix)
-- 
2.30.9