--
You received this message because you are subscribed to the Google Groups "sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
To post to this group, send email to sage-...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.
IMHO, they do not belong either to parents. A set has generators?
sage: Partitions(5).gens_dict()
Traceback (most recent call last):
...
AttributeError: 'StandardPermutations_n_with_category' object
has no attribute 'gens'AttributeError: 'Partitions_n_with_category'
In the same vein, shouldn't base_ring be removed from Parent as well ?
sage: Set([1,2,3]).base_ring()
The return value is None, which is arguably correct, for a generic set has no base ring, but it might be surprising when using tab completion to discover functionalities to see that a base_ring() method exists for such objects.
On Tue, May 05, 2015 at 10:30:18PM -0700, Robert Bradshaw wrote:
> > Eric:
> > In the same vein, shouldn't base_ring be removed from Parent as well ?
Yes indeed.
> As Parents have Elements, this is also the root of operations that
> deal with coercion (arithmetic between elements of unequal Parents).
> Some functions like base_ring are used for coercion, though arguments
> could be made that it could be moved elsewhere and called dynamically
> iff it exists.
David Roe and I investigated what had to be done for this at PyCon'15,
and he then worked on it. If I remember well, he had a mostly working
branch. This is #18196.
Cheers,
Nicolas
--
Nicolas M. Thiéry "Isil" <nth...@users.sf.net>
http://Nicolas.Thiery.name/