[Python-Dev] Removing tp_compare? (original) (raw)
Mark Dickinson dickinsm at gmail.com
Sun Feb 1 13:22:09 CET 2009
- Previous message: [Python-Dev] Fwd: Partial function application 'from the right'
- Next message: [Python-Dev] Removing tp_compare?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sat, Jan 31, 2009 at 9:28 PM, "Martin v. Löwis" <martin at v.loewis.de> wrote:
tpreserved sounds fine. In 3.0.1, filling it with a function pointer should give no error, since that would be a binary-incompatible change.
I'm not sure I understand you here. Are you saying that in your opinion it is safe to change the type of tp_reserved from (cmpfunc *) to some other (dummy) function pointer?
I now realize (thanks to your message) that changing the type to (void ) isn't entirely safe, since sizeof(void) may be different from sizeof(cmpfunc*) on some platforms.
Mark
- Previous message: [Python-Dev] Fwd: Partial function application 'from the right'
- Next message: [Python-Dev] Removing tp_compare?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]