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 tmick
Recipients
Date 2000-06-27.16:17:23
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
As I understand signal handling, the signal() function takes a callback and returns a callback -- what they do is beside the point here. A callback can either be a function pointer or one of some special #define'd flags (SIG_DFL [default], SIG_IGN [ignore], others?). Practically speaking, these constants are likely to be 0 and 1 or, in any case, *not* big enough to overflow a 32-bit value. Theoretically, on Win64 there is room for overflow if these constants are treated as a long because, I think, they are only guaranteed to fit in a pointer (at least they are cast freely to function pointers).

So, effectively you are right. This patch is mainly to avoid compiler warnings, with a little healthy anal-retentiveness to boot.
History
Date User Action Args
2007-08-23 14:59:34adminlinkissue400527 messages
2007-08-23 14:59:34admincreate