Opened 5 years ago

Last modified 5 years ago

#21219 new defect

Words with keywords finite and infinite counter-intuitive

Reported by: dkrenn Owned by:
Priority: major Milestone:
Component: combinatorics Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: #21181 Stopgaps:

Status badges

Description

sage: Words(srange(3), finite=True)
Finite and infinite words over {0, 1, 2}

I would have expected to get only the finite words. The same for infinite=True.

Change History (3)

comment:1 Changed 5 years ago by leif

Note that there are #21178 and #21181 (fixing docstrings) just in case you want to make changes to the code. (In that case, this ticket should depend on the latter.)

comment:2 Changed 5 years ago by leif

While there's no INPUTS: section, the signature tells that both keyword arguments default to True:

Words(alphabet=None, length=None, finite=True, infinite=True)

comment:3 Changed 5 years ago by leif

  • Dependencies set to #21181

#21181 already depends on #21178.

Note: See TracTickets for help on using tickets.