Blame 00155-avoid-ctypes-thunks.patch

Matej Stuchlik 2c1c983
diff -up Python-3.2.3/Lib/ctypes/__init__.py.rhbz814391 Python-3.2.3/Lib/ctypes/__init__.py
Matej Stuchlik 2c1c983
--- Python-3.2.3/Lib/ctypes/__init__.py.rhbz814391	2012-04-20 15:12:49.017867692 -0400
Matej Stuchlik 2c1c983
+++ Python-3.2.3/Lib/ctypes/__init__.py	2012-04-20 15:15:09.501111408 -0400
Matej Stuchlik 2c1c983
@@ -275,11 +275,6 @@ def _reset_cache():
Matej Stuchlik 2c1c983
     # _SimpleCData.c_char_p_from_param
Matej Stuchlik 2c1c983
     POINTER(c_char).from_param = c_char_p.from_param
Matej Stuchlik 2c1c983
     _pointer_type_cache[None] = c_void_p
Matej Stuchlik 2c1c983
-    # XXX for whatever reasons, creating the first instance of a callback
Matej Stuchlik 2c1c983
-    # function is needed for the unittests on Win64 to succeed.  This MAY
Matej Stuchlik 2c1c983
-    # be a compiler bug, since the problem occurs only when _ctypes is
Matej Stuchlik 2c1c983
-    # compiled with the MS SDK compiler.  Or an uninitialized variable?
Matej Stuchlik 2c1c983
-    CFUNCTYPE(c_int)(lambda: None)
Matej Stuchlik 2c1c983
 
Matej Stuchlik 2c1c983
 def create_unicode_buffer(init, size=None):
Matej Stuchlik 2c1c983
     """create_unicode_buffer(aString) -> character array