Skip to content

Commit cdba1f6

Browse files
Remove import of c-versions of POINTER and pointer
1 parent e251a7d commit cdba1f6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Lib/ctypes/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,6 @@ class c_void_p(_SimpleCData):
265265
class c_bool(_SimpleCData):
266266
_type_ = "?"
267267

268-
from _ctypes import POINTER, pointer, _pointer_type_cache
269-
270268
def POINTER(cls):
271269
"""
272270
Create and return a new ctypes pointer type.
@@ -304,6 +302,9 @@ def pointer(obj):
304302
typ = POINTER(type(obj))
305303
return typ(obj)
306304

305+
_pointer_type_cache = {}
306+
"""XXX: Subject to change."""
307+
307308
class c_wchar_p(_SimpleCData):
308309
_type_ = "Z"
309310
def __repr__(self):

0 commit comments

Comments
 (0)