This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author nnorwitz
Recipients
Date 2007-04-19.06:58:13
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
> Do other platforms have a function that can do this check?

There's no platform independent way to do this.

I don't know anything about ctypes, but what might be a way to handle this is providing a way to convert an integer into a pointer (like a void*).  Then all these routines could accept this void* type that you would define, but not accept a raw integer.  That means people would still have access to do the same thing they can currently do, but it would be clearer that they are playing with fire by converting any int into a pointer.

There are so many ways to use ctypes to crash, I'm not sure if this is worth fixing, except perhaps in the docs to point out the issues.
History
Date User Action Args
2007-08-23 14:53:10adminlinkissue1701409 messages
2007-08-23 14:53:10admincreate