FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-32787: Better error handling in ctypes. by serhiy-storchaka · Pull Request #3727 · python/cpython · GitHub

/ cpython Public

bpo-32787: Better error handling in ctypes. - #3727

Merged
serhiy-storchaka merged 11 commits into
python:masterfrom
serhiy-storchaka:ctypes-no-hasattr
Dec 5, 2018
Merged

bpo-32787: Better error handling in ctypes.#3727
serhiy-storchaka merged 11 commits into
python:masterfrom
serhiy-storchaka:ctypes-no-hasattr

Conversation

serhiy-storchaka commented Sep 24, 2017
edited
Loading

Copy link
Copy Markdown
Member

Comment thread Modules/_ctypes/stgdict.c
}

len = PySequence_Length(fields);
len = PySequence_Size(fields);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Why Length → Size?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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. Feb 7, 2018
serhiy-storchaka merged commit 398bd27 into python:master Dec 5, 2018

Copy link
Copy Markdown

@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL