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

Changes to PyMethod_New breaks ctypes on Windows #45846

Closed
tiran opened this issue Nov 27, 2007 · 3 comments
Closed

Changes to PyMethod_New breaks ctypes on Windows #45846

tiran opened this issue Nov 27, 2007 · 3 comments
Assignees
Labels
extension-modules C modules in the Modules dir OS-windows

Comments

@tiran
Copy link
Member

tiran commented Nov 27, 2007

BPO 1505
Nosy @theller, @tiran

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 2007-11-28.13:43:48.269>
created_at = <Date 2007-11-27.13:02:37.119>
labels = ['extension-modules', 'OS-windows']
title = 'Changes to PyMethod_New breaks ctypes on Windows'
updated_at = <Date 2008-01-06.22:29:44.787>
user = 'https://github.com/tiran'

bugs.python.org fields:

activity = <Date 2008-01-06.22:29:44.787>
actor = 'admin'
assignee = 'theller'
closed = True
closed_date = <Date 2007-11-28.13:43:48.269>
closer = 'christian.heimes'
components = ['Extension Modules', 'Windows']
creation = <Date 2007-11-27.13:02:37.119>
creator = 'christian.heimes'
dependencies = []
files = []
hgrepos = []
issue_num = 1505
keywords = []
message_count = 3.0
messages = ['57871', '57881', '57912']
nosy_count = 2.0
nosy_names = ['theller', 'christian.heimes']
pr_nums = []
priority = 'high'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue1505'
versions = ['Python 3.0']

@tiran
Copy link
Member Author

tiran commented Nov 27, 2007

The problem is in _ctypes.c:create_comerror() around line 4620.

@tiran tiran added extension-modules C modules in the Modules dir OS-windows labels Nov 27, 2007
@theller
Copy link

theller commented Nov 27, 2007

Christian Heimes schrieb:

> New submission from Christian Heimes:
>
> The problem is in _ctypes.c:create_comerror() around line 4620.

The code tries to populate a dict with methods and finally pass them to
   PyErr_NewException("_ctypes.COMError", NULL, dict);

I have no idea what to do. What do I have to put into the dict?

@tiran
Copy link
Member Author

tiran commented Nov 28, 2007

The removal of unbound methods made it hard to bind CFunctions. I
rewrote the code in r59215.

@tiran tiran closed this as completed Nov 28, 2007
@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 OS-windows
Projects
None yet
Development

No branches or pull requests

2 participants