Skip to content

Bug in finite word and infinite word concatenation #41298

@videlec

Description

@videlec

Depending on the parent, concatenation of finite and infinite words works or leads to an error

sage: W('1') + W('0')**oo
word: 1000000000000000000000000000000000000000...
sage: W = Words([0,1])
sage: W([1]) + W([0])**oo
...
TypeError: Python len method cannot return a non integer value (=+Infinity): use length method instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions