[pypy-svn] pypy jitypes2: support for unicode arguments

antocuni commits-noreply at bitbucket.org
Thu Dec 30 17:59:05 CET 2010


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: jitypes2
Changeset: r40285:00bacfa5b496
Date: 2010-12-30 14:29 +0100
http://bitbucket.org/pypy/pypy/changeset/00bacfa5b496/

Log:	support for unicode arguments

diff --git a/lib_pypy/_ctypes/function.py b/lib_pypy/_ctypes/function.py
--- a/lib_pypy/_ctypes/function.py
+++ b/lib_pypy/_ctypes/function.py
@@ -403,7 +403,7 @@
                 value = ord(value)
             elif shape == 'P':
                 value = arg._get_buffer_value()
-            elif shape == 'z':
+            elif shape == 'z' or shape == 'Z':
                 value = arg._get_buffer_value()
             elif self._is_struct_shape(shape):
                 value = arg._get_buffer_value()


More information about the Pypy-commit mailing list