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

Practical ctypes example #43976

Closed
leppton mannequin opened this issue Sep 15, 2006 · 4 comments
Closed

Practical ctypes example #43976

leppton mannequin opened this issue Sep 15, 2006 · 4 comments
Assignees
Labels
docs Documentation in the Doc dir

Comments

@leppton
Copy link
Mannequin

leppton mannequin commented Sep 15, 2006

BPO 1559219
Nosy @theller
Files
  • get_exports.py: Read exports from dll script
  • 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 = 'https://github.com/theller'
    closed_at = <Date 2006-11-14.18:06:41.000>
    created_at = <Date 2006-09-15.11:01:43.000>
    labels = ['docs']
    title = 'Practical ctypes example'
    updated_at = <Date 2006-11-14.18:06:41.000>
    user = 'https://bugs.python.org/leppton'

    bugs.python.org fields:

    activity = <Date 2006-11-14.18:06:41.000>
    actor = 'theller'
    assignee = 'theller'
    closed = True
    closed_date = None
    closer = None
    components = ['Documentation']
    creation = <Date 2006-09-15.11:01:43.000>
    creator = 'leppton'
    dependencies = []
    files = ['7539']
    hgrepos = []
    issue_num = 1559219
    keywords = ['patch']
    message_count = 4.0
    messages = ['51117', '51118', '51119', '51120']
    nosy_count = 2.0
    nosy_names = ['theller', 'leppton']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue1559219'
    versions = ['Python 2.5']

    @leppton
    Copy link
    Mannequin Author

    leppton mannequin commented Sep 15, 2006

    Ctypes module documentation can be little hard to
    grasp, so I wrote a practical example that reads all
    function names from dll export directory.

    It has structures, pointer arithmetic, and function
    prototype with default parameters.

    Maybe it fits somewhere in documentation...

    @leppton leppton mannequin closed this as completed Sep 15, 2006
    @leppton leppton mannequin assigned theller Sep 15, 2006
    @leppton leppton mannequin added the docs Documentation in the Doc dir label Sep 15, 2006
    @leppton leppton mannequin closed this as completed Sep 15, 2006
    @leppton leppton mannequin assigned theller Sep 15, 2006
    @leppton leppton mannequin added the docs Documentation in the Doc dir label Sep 15, 2006
    @theller
    Copy link

    theller commented Nov 2, 2006

    Logged In: YES
    user_id=11105

    I guess that a ~300 line module is too large to add to the
    documentation.

    OTOH, this module implements very useful functionality. If
    you give me the
    permission to distribute this module under the MIT license,
    I would like to
    add it to a 'ctypeslib' supplemental package (which will
    also contain other
    useful stuff).

    Oh, and the same functionality for ELF-based platforms would
    be very nice ;-).

    @leppton
    Copy link
    Mannequin Author

    leppton mannequin commented Nov 3, 2006

    Logged In: YES
    user_id=1598785

    Permission granted for MIT license. Can't help with ELFs,
    I'm a windows guy :/

    @theller
    Copy link

    theller commented Nov 14, 2006

    I've added this as a module ctypeslib.contrib.get_exports, in the SVN repository at http://svn.python.org/projects/ctypes/trunk/ctypeslib.

    Thanks, leppton (if you would like to see your real name in the code somewhere please tell me so).

    @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
    docs Documentation in the Doc dir
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant