Skip to content

The empty standard tableau exists ! :-) #5781

@hivert

Description

@hivert

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 !!!

CC: @sagetrac-sage-combinat

Component: combinatorics

Keywords: tableau

Issue created by migration from https://trac.sagemath.org/ticket/5781

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions