#8127: Wraps string features into WordDatatypes
---------------------------+------------------------------------------------
   Reporter:  vdelecroix   |       Owner:  vdelecroix  
       Type:  enhancement  |      Status:  new         
   Priority:  major        |   Milestone:  sage-4.3.2  
  Component:  algebra      |    Keywords:  string, word
     Author:  vdelecroix   |    Upstream:  N/A         
   Reviewer:               |      Merged:              
Work_issues:               |  
---------------------------+------------------------------------------------
 Python has low-level operations for strings and we should allow them for
 words. For example
 {{{
 sage: sage: s = "ma maman est magique"
 sage: s.split(' ')
 ['ma', 'maman', 'est', 'magique']
 sage: s.split('ma')
 ['', ' ', '', 'n est ', 'gique']
 }}}

 The patch implements split and partition for words
 {{{
 sage: w = Word("ma maman est magique")
 sage: w.split(' ')
 [word: ma, word: maman, word: est, word: magique]
 sage: w.split('ma')
 [word: , word:  , word: , word: n est , word: gique]
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8127>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to