Opened 8 years ago

Closed 7 years ago

#12350 closed defect (invalid)

ValueError when computing palindrome factors of a finite word

Reported by: slabbe Owned by: slabbe
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: combinatorics Keywords:
Cc: jdemeyer Merged in:
Authors: Reviewers: Sébastien Labbé
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description

With sage-4.7.2, I get

sage: m = WordMorphism('a->ab,b->ba')
sage: w = m.fixed_point('a')
sage: pref = w[:50]
sage: pref.palindromes()
Traceback (most recent call last):
...
ValueError: generator already executing

Change History (5)

comment:1 Changed 8 years ago by slabbe

I found the problem and realized that it does work on a clean sage-4.7.2:

sage: m = WordMorphism('a->ab,b->ba')
sage: w = m.fixed_point('a')
sage: pref = w[:50]
sage: pref.palindromes()
sage: s = pref.palindromes()
sage: type(s)
<type 'set'>
sage: len(s)
39

comment:2 Changed 8 years ago by slabbe

  • Cc jdemeyer added

The problem reported in this ticket is from a modification I made long time ago on my own install. Sorry for that.

Jeroen : This ticket should be closed as invalid.

comment:3 Changed 7 years ago by tscrim

  • Milestone changed from sage-5.7 to sage-duplicate/invalid/wontfix
  • Status changed from new to needs_review

comment:4 Changed 7 years ago by tscrim

  • Status changed from needs_review to positive_review

Works for me as well on 5.5.rc0:

sage: m = WordMorphism('a->ab,b->ba')
sage: w = m.fixed_point('a')
sage: pref = w[:50]
sage: pref.palindromes()
set([word: bbaabbabaabbaababbaabb, ...
Last edited 7 years ago by tscrim (previous) (diff)

comment:5 Changed 7 years ago by jdemeyer

  • Resolution set to invalid
  • Reviewers set to Sébastien Labbé
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.