A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2013-October/129146.html below:

[Python-Dev] Make str/bytes hash algorithm pluggable?

[Python-Dev] Make str/bytes hash algorithm pluggable? [Python-Dev] Make str/bytes hash algorithm pluggable?Victor Stinner victor.stinner at gmail.com
Thu Oct 3 22:06:46 CEST 2013
2013/10/3 Christian Heimes <christian at python.org>:
> A hash algorithm can be added and one avaible hash
> algorithm can be set before Py_Initialize() is called for the first
> time.

"Py_Initialize" is not the good guard. Try for example "python3 -X
faulthandler": PyObject_Hash() is called before Py_Initialize() to add
"faulthandler" key into sys._xoptions dictionary.

Today many Python internal functions are used before Python is
initialized... See the PEP 432 which proposes to improve the
situation:
http://www.python.org/dev/peps/pep-0432/

Victor
More information about the Python-Dev mailing list

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