#16644: Implement LinearCode.cardinality()
-------------------------------------+-------------------------------------
Reporter: ppurka | Owner:
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-6.3
Component: coding theory | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/ppurka/ticket/16644 | 4ccae66296a47a62daf12fc8a6662439e6183f35
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Changes (by vbraun):
* cc: SimonKing, nthiery, tscrim (added)
* reviewer: Nathann Cohen =>
* status: positive_review => needs_work
* author: Punarbasu Purkayastha =>
Old description:
> `LinearCode.cardinality()` comes up in tab completion, but it is not
> actually there. Where does it come from? We do not need to worry any more
> since it will now come from the `LinearCode` class itself.
New description:
{{{
sage: C = codes.HammingCode(3, GF(2))
sage: C.cardinality()
---------------------------------------------------------------------------
AttributeError Traceback (most recent call
last)
<ipython-input-2-2e23aafacb95> in <module>()
----> 1 C.cardinality()
/home/release/Sage/local/lib/python2.7/site-
packages/sage/structure/parent.so in
sage.structure.parent.Parent.__getattr__
(build/cythonized/sage/structure/parent.c:7211)()
AttributeError: 'LinearCode' object has no attribute 'cardinality'
sage: 'cardinality' in dir(C)
True
sage: hasattr(C, 'cardinality')
False
}}}
--
Comment:
Nicolas, can you explain to me why this is not working. And, more
importantly. why do we get totally useless diagnostics for why it is not
working?
--
Ticket URL: <http://trac.sagemath.org/ticket/16644#comment:11>
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.