From: nospam at bitbucket.com (Phil Mayes)
Date: Thu, 8 Apr 1999 23:08:18 -0700
Subject: Pythonwin problem in HookNotify
Message-ID: <zPgP2.6$BR.21236@newsfeed.avtel.net>
X-UID: 1474                                                  

The PythonWin documentation for PyCCmdTarget.HookNotify talks of
returning
   "an integer containing the address of the first byte of
    the extended information [following the normal struct]."

but the code (win32notify.cpp line 284) is:
    ob2 = PyInt_FromLong((int)pHdr + 1);
and should be:
    ob2 = PyInt_FromLong((int)(pHdr + 1));

So the dread spectre of backwards compatibility arises:
if this is fixed, whose code will it break?  Note that
code that is aware of this problem could check for it by
testing bit 0, but that doesn't help code that _isn't_ aware
of it.  What are the odds of anyone using this rather obscure
area?  Any opinions on the best way to handle this?  Mark?
--
Phil Mayes    pmayes AT olivebr DOT com
Olive Branch Software - home of Arranger - http://www.olivebr.com/
Check out our PalmPilot news page at http://www.olivebr.com/pilot/news.htm






