Skip to content

Commit 2373c63

Browse files
Fix docstrings
1 parent 6ac84c7 commit 2373c63

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Lib/ctypes/__init__.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -266,11 +266,7 @@ class c_bool(_SimpleCData):
266266
_type_ = "?"
267267

268268
def POINTER(cls):
269-
"""
270-
Create and return a new ctypes pointer type.
271-
272-
cls
273-
A ctypes type.
269+
"""Create and return a new ctypes pointer type.
274270
275271
Pointer types are cached and reused internally,
276272
so calling this function repeatedly is cheap.
@@ -292,8 +288,7 @@ def POINTER(cls):
292288
return type(f'LP_{cls.__name__}', (_Pointer,), {'_type_': cls})
293289

294290
def pointer(obj):
295-
"""
296-
Create a new pointer instance, pointing to 'obj'.
291+
"""Create a new pointer instance, pointing to 'obj'.
297292
298293
The returned object is of the type POINTER(type(obj)). Note that if you
299294
just want to pass a pointer to an object to a foreign function call, you

0 commit comments

Comments
 (0)