#6652: should not have algebra structure on streams
---------------------------+------------------------------------------------
 Reporter:  hemmecke       |       Owner:  mhansen
     Type:  defect         |      Status:  new    
 Priority:  major          |   Milestone:         
Component:  combinatorics  |    Keywords:         
 Reviewer:                 |      Author:         
   Merged:                 |  
---------------------------+------------------------------------------------
 combinat/species/stream.py has its origin in
 {{{
 svn cat svn://svn.risc.uni-
 linz.ac.at/hemmecke/combinat/trunk/combinat/src/stream.as.nw
 }}}
 I designed the original Aldor domain `DataStream` as a container being an
 equivalent of an infinite array. Since the Stream can contain any objects,
 it makes no sense for the stream to provide a `__mul__` and {{{__add__}}}
 method. Any algebraic operations should be defined in a derived class.

 Suggestion: Remove {{{__add__}}}, {{{__mul__}}}, `_times_naive`, `stretch`
 and `_stretch_gen` from stream.py and put them into a more appropriate
 place in the class hierarchy.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6652>
Sage <http://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