Skip to content

Implement // (floordiv) for IntegerFactorization objects #40812

@maxale

Description

@maxale

Problem Description

For example, factor(100) // factor(2) results in

TypeError: unsupported operand type(s) for //: 'IntegerFactorization' and 'IntegerFactorization'

Proposed Solution

Implement // operator for IntegerFactorization objects.

Alternatives Considered

Note that factor(100) / factor(2) produces Factorization rather than IntegerFactorization object.

Additional Information

No response

Is there an existing issue for this?

  • I have searched the existing issues for a bug report that matches the one I want to file, without success.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions