[Python-checkins] python/dist/src/Mac/Lib aetools.py,1.4,1.5
jackjansen@users.sourceforge.net
jackjansen@users.sourceforge.net
Fri, 25 Oct 2002 13:06:41 -0700
Update of /cvsroot/python/python/dist/src/Mac/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv10785
Modified Files:
aetools.py
Log Message:
Under Jaguar it seems that 'errn' return value keyword parameters don't
(or don't always?) show up with missed(). I think this is a bug in
Jaguar, but as it is a potential dangerous problem (the OSA event has
failed, but the Python code isn't told about this and happily continues)
this is a quick workaround.
Bugfix candidate, I'll add it to 2.2.2 as a last second fix.
Index: aetools.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Lib/aetools.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** aetools.py 7 Aug 2002 14:48:59 -0000 1.4
--- aetools.py 25 Oct 2002 20:06:29 -0000 1.5
***************
*** 66,69 ****
--- 66,77 ----
parameters['----'] = unpack(dirobj, formodulename)
del dirobj
+ # Workaround for what I feel is a bug in OSX 10.2: 'errn' won't show up in missed...
+ try:
+ dirobj = ae.AEGetParamDesc('errn', '****')
+ except AE.Error:
+ pass
+ else:
+ parameters['errn'] = unpack(dirobj, formodulename)
+ del dirobj
while 1:
key = missed(ae)