#19675: Move normalize_names() out of CategoryObject
----------------------------------+-------------------------
Reporter: jdemeyer | Owner:
Type: enhancement | Status: new
Priority: major | Milestone: sage-6.10
Component: categories | Resolution:
Keywords: | Merged in:
Authors: Jeroen Demeyer | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
----------------------------------+-------------------------
Description changed by jdemeyer:
Old description:
> It makes no sense that `normalize_names` appears in the TAB-completion of
> all `CategoryObject`s. It also makes little sense that it's a ''method''
> of `CategoryObject`.
>
> 1. move `normalize_names` and `_certify_names` out of `CategoryObject`
> and make them non-method functions.
>
> 2. remove the redundant `parent_gens.normalize_names`,
> `parent_gens._certify_names`, `parent.normalize_names` and
> `sage.schemes.toric.variety.certify_names`
>
> 3. add doctests.
New description:
It makes no sense that `normalize_names` appears in the TAB-completion of
all `CategoryObject`s. It also makes little sense that it's a ''method''
of `CategoryObject`.
1. move `normalize_names` and `_certify_names` out of `CategoryObject` and
make them non-method functions.
2. remove the redundant `parent_gens.normalize_names`,
`parent_gens._certify_names`, `parent.normalize_names` and
`sage.schemes.toric.variety.certify_names`.
3. interpret `ngens=-1` as "unknown number of generators" and `ngens=0` as
"no generators".
4. add doctests.
--
--
Ticket URL: <http://trac.sagemath.org/ticket/19675#comment:3>
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.