8000
  • bpo-32787: Better error handling in ctypes. by serhiy-storchaka · Pull Request #3727 · python/cpython · GitHub
    [go: up one dir, main page]

    Skip to content

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

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

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

    Conversation

    @serhiy-storchaka
    Copy link
    Member
    @serhiy-storchaka serhiy-storchaka commented Sep 24, 2017

    }

    len = PySequence_Length(fields);
    len = PySequence_Size(fields);
    Copy link
    Contributor

    Choose a reason for hiding this comment

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

    Why LengthSize?

    Copy link
    Member Author

    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 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 serhiy-storchaka merged commit 398bd27 into python:master Dec 5, 2018
    @bedevere-bot
    Copy link

    @serhiy-storchaka: Please replace # with GH- in the commit message next time. Thanks!

    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

    0