bpo-32787: Better error handling in ctypes. by serhiy-storchaka · Pull Request #3727 · python/cpython
-
-
Notifications
You must be signed in to change notification settings - Fork 34.8k
Conversation
| } | ||
|
|
||
| len = PySequence_Length(fields); | ||
| len = PySequence_Size(fields); |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why Length → Size?
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PySequence_Size is more commonly used. PySequence_Length is just an outdated alias of PySequence_Size.
serhiy-storchaka
changed the title
bpo-31572: Get rid of PyObject_HasAttrString() in ctypes.
bpo-32787: Better error handling in ctypes.
@serhiy-storchaka: Please replace # with GH- in the commit message next time. Thanks!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters