Skip to content

Commit 8efa28a

Browse files
encukouneonene
andauthored
Apply suggestions from code review
Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
1 parent 3129ef5 commit 8efa28a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Lib/ctypes/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ class c_wchar(_SimpleCData):
342342
_type_ = "u"
343343

344344
def _reset_cache():
345+
_pointer_type_cache_fallback.clear()
345346
_c_functype_cache.clear()
346347
if _os.name == "nt":
347348
_win_functype_cache.clear()

Lib/test/test_ctypes/test_incomplete.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import warnings
44
from ctypes import Structure, POINTER, pointer, c_char_p
55

6-
# String-based "incomplete pointers" wers implemented ctypes 0.6.3 (2003, when
6+
# String-based "incomplete pointers" were implemented in ctypes 0.6.3 (2003, when
77
# ctypes was an external project). They made obsolete by the current
88
# incomplete *types* (setting `_fields_` late) in 0.9.5 (2005).
99
# ctypes was added to Python 2.5 (2006), without any mention in docs.

0 commit comments

Comments
 (0)