Ticket #14185: trac_14185.patch

File trac_14185.patch, 854 bytes (added by ncohen, 9 years ago)
  • sage/combinat/posets/posets.py

    # HG changeset patch
    # User Nathann Cohen <nathann.cohen@gmail.com>
    # Date 1361729470 -3600
    # Node ID 4275ccc067ec713233e3b8ba8e3ae93e9da05da6
    # Parent  36125c7114724a6bf93066dd58b2f54560be29af
    Stopgap warning in Poset.relabel
    
    diff --git a/sage/combinat/posets/posets.py b/sage/combinat/posets/posets.py
    a b  
    25252525            particular, ``P`` and ``Q`` share the same internal Hasse
    25262526            diagram.
    25272527        """
     2528        from sage.misc.stopgap import stopgap
     2529        stopgap("Relabelling posets is known to break equality between posets (P == Q)", 14019)
     2530
    25282531        assert not isinstance(relabelling, (tuple, list)), "relabelling by tuple or list not yet defined"
    25292532        if isinstance(relabelling, dict):
    25302533            relabelling = relabelling.__getitem__