#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 tscrim):
Here's the backtrace I got:
{{{
File "posets.py", line 3271, in
sage.combinat.posets.posets.FinitePoset.p_partition_enumerator
Failed example:
FP = P.p_partition_enumerator((3,1,2,4), QQ, check=True); FP
Exception raised:
Traceback (most recent call last):
File "/home/travis/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 "/home/travis/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.posets.posets.FinitePoset.p_partition_enumerator[3]>", line
1, in <module>
FP =
P.p_partition_enumerator((Integer(3),Integer(1),Integer(2),Integer(4)),
QQ, check=True); FP
File "/home/travis/sage-5.9.beta5/local/lib/python2.7/site-
packages/sage/combinat/posets/posets.py", line 3288, in
p_partition_enumerator
QR = QuasiSymmetricFunctions(R)
File "classcall_metaclass.pyx", line 330, in
sage.misc.classcall_metaclass.ClasscallMetaclass.__call__
(sage/misc/classcall_metaclass.c:977)
File "cachefunc.pyx", line 992, in
sage.misc.cachefunc.WeakCachedFunction.__call__
(sage/misc/cachefunc.c:5175)
File "/home/travis/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 518, in
sage.misc.classcall_metaclass.typecall
(sage/misc/classcall_metaclass.c:1339)
File "/home/travis/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 "/home/travis/sage-5.9.beta5/local/lib/python2.7/site-
packages/sage/categories/algebras.py", line 159, in __init_extra__
one = self.one()
File "/home/travis/sage-5.9.beta5/local/lib/python2.7/site-
packages/sage/categories/monoids.py", line 270, in one
return self.a_realization().one()
File "/home/travis/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 429, in
sage.misc.classcall_metaclass.ClasscallMetaclass.__get__
(sage/misc/classcall_metaclass.c:1106)
File "/home/travis/sage-5.9.beta5/local/lib/python2.7/site-
packages/sage/misc/bindable_class.py", line 152, in __classget__
return BoundClass(cls, instance)
File "/home/travis/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
}}}
It seems like the `BoundClass` (of `Monomial`) is calling up to the base
`object` and at this point I don't understand why.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14136#comment:17>
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.