Skip to content

Fix ZZ.cartesian_product(...) #16289

@nthiery

Description

@nthiery

This fails due to an inadvertent change introduced by #12959:

sage: ZZ.cartesian_product(GF(2), NN)
Traceback (most recent call last)
...
AttributeError: type object 'sage.rings.integer_ring.IntegerRing_class' has no attribute 'CartesianProduct'

This ticket reverts this change and adds a doctest.

Depends on #16280
Depends on #16288
Depends on #16269

CC: @sagetrac-sage-combinat @nathanncohen @videlec

Component: combinatorics

Author: Nicolas M. Thiéry

Branch/Commit: c9a7e67

Reviewer: Nathann Cohen

Issue created by migration from https://trac.sagemath.org/ticket/16289

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions