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 = []):
>
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
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
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 = []