Skip to content

Category refinement sometimes changes the hash of parents #14471

@vbraun

Description

@vbraun

Some objects with dynamical classes use hash(self.__class__). Since this is not an invariant of dynamical classes bad things will happen.

One such instance is that, under some circumstances, a WeakValueDictionary remove callback is being called but cannot find the object in the dictionary since the hash changed.

Apply

CC: @simon-king-jena @nbruin @nthiery @hivert

Component: memleak

Author: Volker Braun

Reviewer: Simon King

Merged: sage-5.12.beta0

Issue created by migration from https://trac.sagemath.org/ticket/14471

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions