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/2009-July/090910.html below:

[Python-Dev] Py_TPFLAGS_HEAPTYPE too overloaded

[Python-Dev] Py_TPFLAGS_HEAPTYPE too overloaded [Python-Dev] Py_TPFLAGS_HEAPTYPE too overloadedNick Coghlan ncoghlan at gmail.com
Tue Jul 28 13:29:54 CEST 2009
Nick Coghlan wrote:
> One specific example I can think of is that object.__hash__ is special
> cased in a few places due to the way its definition interacts with the
> definition of comparison operations. Allowing changes to the contents of
> object's tp_hash slot could lead to much weirdness when it came to
> __hash__ inheritance.

Just thought of a much better example as I clicked send: the basic
numeric types (especially int) are locked down because they are
special-cased all over the place (including in the main interpreter eval
loop) in order to speed up simple arithmetic.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
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