On Thu, Oct 29, 2009 at 2:28 AM, Kwankyu Lee <ekwan...@gmail.com> wrote:
>
> Hi,
>
> To get the names of generators of a polynomial ring R, I may use
> R.variable_names().
> But it seems that the method at least does not fail for other rings.
> For example,
>
> sage: GF(2).variable_names()
> ('x',)
>
> What is the intention? If variable_names() intends to return the names
> of generators,

Yes.

> then I think it should be named as "generator_names()",
> and it should return proper names for non-polynomial_rings such as GF
> (2).

I would happily change this if you made that remark 4 years ago.  I'm
against changing it now though, simply because it would break years of
code.   And adding an alias instead of changing the name would likely
just add confusion.

It would be good to add a docstring and doctests to the function
though explaining it in detail, since it has none right now.

 -- William

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to