#15875: Add is_induced_subposet
-------------------------------------+-------------------------------------
       Reporter:  csar               |        Owner:
           Type:  enhancement        |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.10
      Component:  combinatorics      |   Resolution:
       Keywords:  posets             |    Merged in:
        Authors:  Jori Mäntysalo     |    Reviewers:  Travis Scrimshaw,
Report Upstream:  N/A                |  Nathann Cohen
         Branch:                     |  Work issues:
  u/jmantysalo/is_subposet           |       Commit:
   Dependencies:                     |  fb6299eec28a317a64bfc38b8474c816d06cdc35
                                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by jmantysalo):

 Replying to [comment:63 ncohen]:

 > I do not understand the point of the line `if not hasattr(other,
 'hasse_diagram'):`. Given that you call `subposet` and `.hasse_diagram` on
 `other` anyway your code will raise an exception whenever those methods
 are not available.

 As you wish, changed that.

 Now `P.is_induced_subposet('junk')` will say `AttributeError: 'str' object
 has no attribute '_is_facade'`. A slightly confusing to a user, but should
 not be that hard to track the error.

 (Quite many Sage functions give strange errors from wrong input... At
 least this won't be first one.)

--
Ticket URL: <http://trac.sagemath.org/ticket/15875#comment:65>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to