Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b33890d

Browse files
get and getitem should consistent
1 parent 4ef57e9 commit b33890d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/ctypes/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ def get(self, cls, default=None):
325325
try:
326326
return cls.__pointer_type__
327327
except AttributeError:
328-
return default
328+
return _pointer_type_cache_fallback.get(cls, default)
329329

330330
def __contains__(self, cls):
331331
return hasattr(cls, '__pointer_type__')

0 commit comments

Comments
 (0)