[Python-Dev] Need help with SF bug #112558 (original) (raw)
M.-A. Lemburg mal@lemburg.com
Thu, 24 Aug 2000 18:53:35 +0200
- Previous message: [Python-Dev] Need help with SF bug #112558
- Next message: [Python-Dev] checkins not showing on python-checkins and python-patches
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"Fred L. Drake, Jr." wrote:
I'd like some help with fixing a bug in dictobject.c. The bug is on SourceForge as #112558, and my attempted fix is SourceForge patch #101277. The original bug is that exceptions raised by an object's cmp() during dictionary lookup are not cleared, and can be propogated during a subsequent lookup attempt. I've made more detailed comments at SourceForge at the patch: http://sourceforge.net/patch/?func=detailpatch&patchid=101277&groupid=5470 Thanks for any suggestions!
Here are some:
Please be very careful when patching this area of the interpreter: it is very performance sensitive.
I'd remove the cmp variable and do a PyErr_Occurred() directly in all cases where PyObect_Compare() returns != 0.
Exceptions during dict lookups are rare. I'm not sure about failing lookups... Valdimir ?
-- Marc-Andre Lemburg
Business: http://www.lemburg.com/ Python Pages: http://www.lemburg.com/python/
- Previous message: [Python-Dev] Need help with SF bug #112558
- Next message: [Python-Dev] checkins not showing on python-checkins and python-patches
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]