CField.size from the ctypes module does not behave as documented on bitfields

Open
#81,368 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
20/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
documentation

Research direction

Start with the ctypes module documentation and review PR #14647, the only implementation reference named in the issue. Compare CField.size's documented behavior on bitfields with its current behavior; done means the documentation and behavior agree.

Written by the indexing model from the issue text.

Description

docs topic-ctypes type-bug
BPO 37187
Nosy @amauryfa, @abalkin, @meadori, @mangrisano, @shihai1991
PRs
  • python/cpython#14647
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2019-06-07.03:46:36.822>
    labels = ['ctypes', 'type-bug', 'docs']
    title = 'CField.size from the ctypes module does not behave as documented on bitfields'
    updated_at = <Date 2019-07-08.17:32:40.963>
    user = 'https://bugs.python.org/EricWieser'
    

    bugs.python.org fields:

    activity = <Date 2019-07-08.17:32:40.963>
    actor = 'shihai1991'
    assignee = 'docs@python'
    closed = False
    closed_date = None
    closer = None
    components = ['Documentation', 'ctypes']
    creation = <Date 2019-06-07.03:46:36.822>
    creator = 'Eric Wieser'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 37187
    keywords = ['patch']
    message_count = 2.0
    messages = ['344895', '344921']
    nosy_count = 7.0
    nosy_names = ['amaury.forgeotdarc', 'belopolsky', 'meador.inge', 'docs@python', 'Eric Wieser', 'mangrisano', 'shihai1991']
    pr_nums = ['14647']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue37187'
    versions = []
    

    Dominant language
    Python
    Stars
    77.2k
    Forks
    36k
    Avg merge
    1d 9h
    Merged PRs (30d)
    558

    Contributor guide

    Open the contributing guide

    First steps

    1. Read the whole issue, then the project's contributing guide.
    2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
    3. Fork the repository and make your change on a branch.
    4. Open a pull request that references the issue number.

    More from python/cpython

    All issues in python/cpython

    Similar issues

    More Python issues

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.