Ticket #8329: trac_8329-posets-repr.patch

File trac_8329-posets-repr.patch, 843 bytes (added by Ryan Hinton, 13 years ago)

Apply both patches, order does not matter

  • sage/combinat/posets/posets.py

    exporting patch:
    # HG changeset patch
    # User Ryan Hinton (at EPFL) <rwh4s@virginia.edu>
    # Date 1269456059 -3600
    # Node ID d70c46c51b2873eab6052b41c7fb0c99298547cc
    # Parent  14a5ba755c0f021c6dfd63bb5d839d51632864d3
    fix printing doctest failure due to new copy implementation
    
    diff -r 14a5ba755c0f -r d70c46c51b28 sage/combinat/posets/posets.py
    a b  
    437437       
    438438            sage: Q = Poset({5:[2,3], 1:[3,4], 2:[0], 3:[0], 4:[0]})
    439439            sage: Q.hasse_diagram()
    440             Digraph on 6 vertices
     440            Hasse diagram of a poset containing 6 elements
    441441
    442442            sage: P = Poset({'a':['b'],'b':['d'],'c':['d'],'d':['f'],'e':['f'],'f':[]})
    443443            sage: H = P.hasse_diagram()