> > > - do not call PyErr_Clear() systematically after PyObject_Compare(); > > > only if (!error_restore && PyErr_Occurred()) > > > > What do you mean? The lookdict code checked in already checks > > PyErr_Occurrs(). > > Was fast again. Actually PyErr_Clear() is called on PyErr_Occurred(). > PyErr_Occurred() is called systematically after PyObject_Compare() > and it will evaluate to true even if the error was previously fetched. No, PyErr_Fetch() clears the exception! PyErr_Restore() restores it. --Guido van Rossum (home page: http://www.pythonlabs.com/~guido/)
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