Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
make everything work again
Browse files Browse the repository at this point in the history
  • Loading branch information
dkrenn committed Aug 22, 2015
1 parent 383f713 commit febf372
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/sage/rings/asymptotic/growth_group_cartesian.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,28 @@ class GenericProduct(CartesianProductPosets, GenericGrowthGroup):
:class:`~sage.sets.cartesian_product.CartesianProductPosets`.
"""

@staticmethod
def __classcall__(cls, *args, **kwds):
return CartesianProductPosets.__classcall__(cls, *args, **kwds)

def __init__(self, sets, category, **kwds):
order = kwds.pop('order')
CartesianProductPosets.__init__(self, sets, category, order, **kwds)

vars = sum(iter(factor.variable_names()
for factor in self.cartesian_factors()),
tuple())
from itertools import groupby
from sage.rings.asymptotic.growth_group import Variable
Vars = Variable(tuple(v for v, _ in groupby(vars)))

GenericGrowthGroup.__init__(self, sets[0], Vars, self.category(), **kwds)


def __hash__(self):
return CartesianProductPosets.__hash__(self)


def _element_constructor_(self, data):
r"""
Converts the given object to an element of this cartesian
Expand Down

0 comments on commit febf372

Please sign in to comment.