Hi Martin, On Tue, Aug 08, 2006 at 11:14:56PM +0200, "Martin v. L?wis" wrote: > - h = PyInt_AsLong(res); > + if (PyLong_Check(res)) > + h = res->ob_type->tp_hash(res); This bug will keep showing up forever :-) It's unsafe against a user subclassing 'long' and overriding __hash__ of that subclass to return the object itself -- it would cause an infinite C recursion. Instead, we need either a new API like PyLong_Hash(), or call 'PyLong_Type.tp_hash(res)'. Same in the other change. A bientot, Armin
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