Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stdint (eg. uint64_t) for ctypes #51108

Closed
vstinner opened this issue Sep 7, 2009 · 2 comments
Closed

stdint (eg. uint64_t) for ctypes #51108

vstinner opened this issue Sep 7, 2009 · 2 comments
Labels
extension-modules C modules in the Modules dir type-feature A feature request or enhancement

Comments

@vstinner
Copy link
Member

vstinner commented Sep 7, 2009

BPO 6859
Nosy @vstinner
Files
  • stdint.py
  • 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 = <Date 2009-09-08.00:00:21.105>
    created_at = <Date 2009-09-07.23:58:07.197>
    labels = ['extension-modules', 'type-feature', 'invalid']
    title = 'stdint (eg. uint64_t) for ctypes'
    updated_at = <Date 2009-09-08.00:00:34.885>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2009-09-08.00:00:34.885>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2009-09-08.00:00:21.105>
    closer = 'vstinner'
    components = ['Extension Modules']
    creation = <Date 2009-09-07.23:58:07.197>
    creator = 'vstinner'
    dependencies = []
    files = ['14858']
    hgrepos = []
    issue_num = 6859
    keywords = []
    message_count = 2.0
    messages = ['92403', '92404']
    nosy_count = 1.0
    nosy_names = ['vstinner']
    pr_nums = []
    priority = 'normal'
    resolution = 'not a bug'
    stage = None
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue6859'
    versions = []

    @vstinner
    Copy link
    Member Author

    vstinner commented Sep 7, 2009

    It would be nice to have (at least) some stdint.h types in ctypes:

    • uint8_t, int8_t
    • int16_t, uint16_t
    • int32_t, uint32_t
    • uint64_t, int64_t

    Attached fle is a Python implementation of that.

    stdint.h contains much more types, but I don't think that
    (u)int_leastXX_t/(u)int_fastXX_t are used in public structures/functions.

    Other interesting types/constants from stdint.h:

    • intptr_t / uintptr_t
    • (U)INT(8|16|32|64)_(MIN|MAX)
    • PTRDIFF_MAX

    @vstinner vstinner added extension-modules C modules in the Modules dir type-feature A feature request or enhancement labels Sep 7, 2009
    @vstinner
    Copy link
    Member Author

    vstinner commented Sep 8, 2009

    Oooh. I just see that ctypes already includes ctypes.c_(u)int(8|16|32|64)
    types... Sorry for the noise :-)

    @vstinner vstinner closed this as completed Sep 8, 2009
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    extension-modules C modules in the Modules dir type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant