A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2000-August/008721.html below:

[Python-Dev] Need help with SF bug #112558

[Python-Dev] Need help with SF bug #112558 [Python-Dev] Need help with SF bug #112558M.-A. Lemburg mal@lemburg.com
Thu, 24 Aug 2000 18:53:35 +0200
"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&patch_id=101277&group_id=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/



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4