Setting tp_{alloc,new,free} in the type structure doesn't
work on Windows? I guess the difference is that symbols from
Python are being used. Reviewing the Python C API docs for
ob_type, I guess that's the case.
Yeah, I think I'll take this.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
struct initializers must be constant in C (not in C++,
though), and cross-DLL pointers are not constant in the
sense that C requires it (Python is built as a shared
library aka DLL on Windows).
Logged In: YES
user_id=71372
Setting tp_{alloc,new,free} in the type structure doesn't
work on Windows? I guess the difference is that symbols from
Python are being used. Reviewing the Python C API docs for
ob_type, I guess that's the case.
Yeah, I think I'll take this.
Logged In: YES
user_id=163326
struct initializers must be constant in C (not in C++,
though), and cross-DLL pointers are not constant in the
sense that C requires it (Python is built as a shared
library aka DLL on Windows).
See point 3.24 of the Python FAQ and this thread I once
started on python-dev, in particular Tim Peter's answer is
enlightening:
http://mail.python.org/pipermail/python-dev/2002-February/019807.html
http://mail.python.org/pipermail/python-dev/2002-February/019815.html