[issue4701] range objects becomes hashable after attribute access

Guilherme Polo report at bugs.python.org
Fri Dec 19 17:09:49 CET 2008


Guilherme Polo <ggpolo at gmail.com> added the comment:

On Fri, Dec 19, 2008 at 2:02 PM, Hagen Fürstenau <report at bugs.python.org> wrote:
>
> Hagen Fürstenau <hfuerstenau at gmx.net> added the comment:
>
> Why does every other place seem to do the cast? Historical reasons?
>

No, if you look at the functions being casted you will notice them do
not take a pointer to PyObject as the first argument, if you are
talking about tp_hash specifically.

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4701>
_______________________________________


More information about the Python-bugs-list mailing list