[sage-devel] Re: questions about AlgebraIdeal

2008-12-17 Thread dmharvey
On Dec 13, 4:46 pm, John H Palmieri wrote: > I was thinking of adding some doctests, so I was looking at > algebra_ideal.py.  Now I'm confused. > > The file has lines (plus some documentation, which I'm omitting): > > class AlgebraIdeal(object): >     def __init__(self, A, gens = []): >        

[sage-devel] Re: questions about AlgebraIdeal

2008-12-16 Thread John H Palmieri
On Dec 16, 7:04 am, Dan Christensen wrote: > John H Palmieri writes: > > > class AlgebraIdeal(object): > >     def __init__(self, A, gens = []): > >         if not isinstance(A, Algebra): raise TypeError, "Argument A > > must be an algebra." > >         self.__algebra = A > >         self.__gens

[sage-devel] Re: questions about AlgebraIdeal

2008-12-16 Thread Dan Christensen
John H Palmieri writes: > class AlgebraIdeal(object): > def __init__(self, A, gens = []): > if not isinstance(A, Algebra): raise TypeError, "Argument A > must be an algebra." > self.__algebra = A > self.__gens = gens [...] > sage: J = AlgebraIdeal(R, [y^2]) > > Then

[sage-devel] Re: questions about AlgebraIdeal

2008-12-13 Thread William Stein
On Sat, Dec 13, 2008 at 1:46 PM, John H Palmieri wrote: > > I was thinking of adding some doctests, so I was looking at > algebra_ideal.py. Now I'm confused. > > The file has lines (plus some documentation, which I'm omitting): > > class AlgebraIdeal(object): >def __init__(self, A, gens = []