#14136: P-partition enumerators in QSym
------------------------------------------------------+---------------------
Reporter: darij | Owner:
sage-combinat
Type: enhancement | Status:
needs_info
Priority: minor | Milestone:
sage-5.10
Component: combinatorics | Resolution:
Keywords: QSym, P-partitions, posets, days45 | Work issues:
Report Upstream: N/A | Reviewers:
Authors: darij | Merged in:
Dependencies: | Stopgaps:
------------------------------------------------------+---------------------
Comment (by strogdon):
There seems to be one other place in Sage where
{{{QuasiSymmetricFunctions()}}} is called in the same manner as in
p_partition_enumerator - in devel/sage/sage/combinat/dyck_word.py where
when doctesting there is no apparent {{{DeprecationWarning}}}. However,
after converting warnings to exceptions I get the following backtrace:
{{{
File "devel/sage/sage/combinat/dyck_word.py", line 1542, in
sage.combinat.dyck_word.DyckWord_complete.characteristic_symmetric_function
Failed example:
f = sum(t**D.area()*D.characteristic_symmetric_function() for D in
DyckWords(3)); f
Exception raised:
Traceback (most recent call last):
File "/storage/sage/sage-5.9.beta5/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 466, in _run
self.execute(example, compiled, test.globs)
File "/storage/sage/sage-5.9.beta5/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 825, in execute
exec compiled in globs
File "<doctest
sage.combinat.dyck_word.DyckWord_complete.characteristic_symmetric_function[2]>",
line 1, in <module>
f = sum(t**D.area()*D.characteristic_symmetric_function() for D in
DyckWords(Integer(3))); f
File "/storage/sage/sage-5.9.beta5/local/lib/python2.7/site-
packages/sage/misc/functional.py", line 656, in symbolic_sum
return sum(expression, *args)
File "<doctest
sage.combinat.dyck_word.DyckWord_complete.characteristic_symmetric_function[2]>",
line 1, in <genexpr>
f = sum(t**D.area()*D.characteristic_symmetric_function() for D in
DyckWords(Integer(3))); f
File "/storage/sage/sage-5.9.beta5/local/lib/python2.7/site-
packages/sage/combinat/dyck_word.py", line 1556, in
characteristic_symmetric_function
F = QuasiSymmetricFunctions(R).Fundamental()
File "classcall_metaclass.pyx", line 279, in
sage.misc.classcall_metaclass.ClasscallMetaclass.__call__
(sage/misc/classcall_metaclass.c:932)
File "cachefunc.pyx", line 992, in
sage.misc.cachefunc.WeakCachedFunction.__call__
(sage/misc/cachefunc.c:5175)
File "/storage/sage/sage-5.9.beta5/local/lib/python2.7/site-
packages/sage/structure/unique_representation.py", line 447, in
__classcall__
instance = typecall(cls, *args, **options)
File "classcall_metaclass.pyx", line 467, in
sage.misc.classcall_metaclass.typecall
(sage/misc/classcall_metaclass.c:1294)
File "/storage/sage/sage-5.9.beta5/local/lib/python2.7/site-
packages/sage/combinat/ncsf_qsym/qsym.py", line 427, in __init__
Parent.__init__(self, category = category.WithRealizations())
File "parent.pyx", line 339, in
sage.structure.parent.Parent.__init__ (sage/structure/parent.c:4095)
File "/storage/sage/sage-5.9.beta5/local/lib/python2.7/site-
packages/sage/categories/algebras.py", line 159, in __init_extra__
one = self.one()
File "/storage/sage/sage-5.9.beta5/local/lib/python2.7/site-
packages/sage/categories/monoids.py", line 270, in one
return self.a_realization().one()
File "/storage/sage/sage-5.9.beta5/local/lib/python2.7/site-
packages/sage/combinat/ncsf_qsym/qsym.py", line 480, in a_realization
return self.Monomial()
File "classcall_metaclass.pyx", line 378, in
sage.misc.classcall_metaclass.ClasscallMetaclass.__get__
(sage/misc/classcall_metaclass.c:1061)
File "/storage/sage/sage-5.9.beta5/local/lib/python2.7/site-
packages/sage/misc/bindable_class.py", line 152, in __classget__
return BoundClass(cls, instance)
File "/storage/sage/sage-5.9.beta5/local/lib/python2.7/site-
packages/sage/misc/bindable_class.py", line 201, in __init__
super(BoundClass, self).__init__(*args)
DeprecationWarning: object.__init__() takes no parameters
}}}
This looks very much like the above backtrace, but of course the
{{{DeprecationWarning}}} does not present itself under norm doctesting. So
something very subtle must be happening.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14136#comment:18>
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.