Changes between Version 1 and Version 2 of Ticket #18426


Ignore:
Timestamp:
05/15/15 15:30:55 (7 years ago)
Author:
nthiery
Comment:

Hi Travis!

I am sure there are plenty of other similar situations of cross-referencing parents (e.g. in SymmetricFunctions). How critical do you think this specific situation is? I mean: do you foresee people creating thousands of different root systems in the same Sage session?

Cheers,

Nicolas

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18426 – Description

    v1 v2  
    55self.dual = RootSystem(self._cartan_type.dual(), as_dual_of=self);
    66}}}
    7 causes the B3 root system to be used as a key in the `UniqueRepresentation` of the C3 root system (I call it so, but note it is the dual of the B3, which will be different than the honest C3 root system), which is a strong reference. Moreover, the B3 root system then holds a (strong) reference to the C3 root system (and vice versa), so both root systems can never can get collected.
     7causes the B3 root system to be used as a key in the `UniqueRepresentation` of the C3 root system (I call it so, but note it is the dual of the B3, which will be different than the honest C3 root system), which is a strong reference that can never be deleted. Moreover, the B3 root system then holds a (strong) reference to the C3 root system, so the C3 root system never gets collected either.
    88
    99Some data: