]> granicus.if.org Git - python/commit
Accept bytes for c_wchar_p instances and c_wchar array instances.
authorThomas Heller <theller@ctypes.org>
Thu, 12 Jul 2007 19:06:25 +0000 (19:06 +0000)
committerThomas Heller <theller@ctypes.org>
Thu, 12 Jul 2007 19:06:25 +0000 (19:06 +0000)
commit60831316df8893e973f92592b7c4c95ad489ff15
tree6e788f97e7c2874b12540a1cb30c946896efb926
parentd0762282022ebb9809e488325cf86bb71e1371c0
Accept bytes for c_wchar_p instances and c_wchar array instances.
ctypes.create_unicode_buffer also accepts bytes now.

Revert some tests in test_unicode: Since string literals are unicode
now, conversion takes place when byte literals are passed as unicode
parameters.
Lib/ctypes/__init__.py
Lib/ctypes/test/test_unicode.py
Modules/_ctypes/_ctypes.c