Hi,

> Im guessing the code to make the "B[word: ....]" string
> may have been in a python file that corresponded to one of the
> Categories above but couldnt find it

The 'word: ' part comes from sage/combinat/words :

sage: Word(range(10))
word: 0123456789
sage: Word(lambda n:n)
word:
0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,...

Currently, one can change the identifier 'word: ' globaly by doing :

sage: WordOptions(identifier='somethingelse')
sage: Word(lambda n:n%10, length=20)
somethingelse01234567890123456789

Or one can erase it completely by doing :

sage: WordOptions(identifier='')
sage: Word(range(10))
0123456789

Hence, we get the following which look better :

sage: WordOptions(identifier='')
sage: A = AlgebrasWithBasis(QQ).example()
sage: A.an_element()
B[] + 2*B[a] + 3*B[b]
sage: A.one()
B[]
sage: A(1)
B[]

A cleaner solution would avoid changing the global identifier... but
this needs some thoughts and adapt the code somewhere.

Cheers,

Sébastien Labbé

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

To unsubscribe, reply using "remove me" as the subject.

Reply via email to