We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ac84c7 commit 2373c63Copy full SHA for 2373c63
1 file changed
Lib/ctypes/__init__.py
@@ -266,11 +266,7 @@ class c_bool(_SimpleCData):
266
_type_ = "?"
267
268
def POINTER(cls):
269
- """
270
- Create and return a new ctypes pointer type.
271
-
272
- cls
273
- A ctypes type.
+ """Create and return a new ctypes pointer type.
274
275
Pointer types are cached and reused internally,
276
so calling this function repeatedly is cheap.
@@ -292,8 +288,7 @@ def POINTER(cls):
292
288
return type(f'LP_{cls.__name__}', (_Pointer,), {'_type_': cls})
293
289
294
290
def pointer(obj):
295
296
- Create a new pointer instance, pointing to 'obj'.
291
+ """Create a new pointer instance, pointing to 'obj'.
297
298
The returned object is of the type POINTER(type(obj)). Note that if you
299
just want to pass a pointer to an object to a foreign function call, you
0 commit comments