#5781: [with patch, need review] The empty standard tableau exists ! :-)
---------------------------+------------------------------------------------
 Reporter:  hivert         |       Owner:  hivert    
     Type:  defect         |      Status:  new       
 Priority:  major          |   Milestone:  sage-3.4.1
Component:  combinatorics  |    Keywords:  tableau   
---------------------------+------------------------------------------------
 Before my patch:
 {{{
 sage: [] in StandardTableaux()
 ---------------------------------------------------------------------------
 ValueError                                Traceback (most recent call
 last)

 /home/averell/.sage/temp/tomahawk/19026/_home_averell__sage_init_sage_0.py
 in <module>()

 /usr/local/sage/sage/local/lib/python2.5/site-
 packages/sage/combinat/tableau.pyc in __contains__(self, x)
    1740             fillings += row
    1741         fillings.sort()
 -> 1742         if fillings != range(1, max(fillings)+1):
    1743             return False
    1744

 ValueError: max() arg is an empty sequence
 }}}

 Now:
 {{{
 sage: [] in StandardTableaux()
 True
 }}}

 Florent, the specialist of the empty objects !!!

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5781>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to