#169: slice assignment not implemented for PARI C library interface
-------------------------+--------------------------------------------------
 Reporter:  was          |        Owner:  was       
     Type:  enhancement  |       Status:  new       
 Priority:  minor        |    Milestone:  sage-3.2.1
Component:  interfaces   |   Resolution:            
 Keywords:               |  
-------------------------+--------------------------------------------------
Old description:

> {{{From "Luislang"
>
> Following session says it all.
>
> --------------------------------------------------------
> | SAGE Version 1.2.2, Build Date: 2006-04-17-2338      |
> | Distributed under the GNU General Public License V2. |
> | For help type <anything>? or <anything>??.           |
> --------------------------------------------------------
>
> sage: s=pari.vector(2,[0,0])
> sage: s[:1]
>  _2 = [0]
> sage: s[:1]=[1]
> ------------------------------------------------------------
> Traceback (most recent call last):
>   File "<console>", line 1, in ?
>   File "gen.pyx", line 417, in gen.gen.__setitem__
> IndexError: index (slice(0, 1, None)) must be between 0 and 1
> }}}

New description:

 From "Luislang"

 Following session says it all.
 {{{
 --------------------------------------------------------
 | SAGE Version 1.2.2, Build Date: 2006-04-17-2338      |
 | Distributed under the GNU General Public License V2. |
 | For help type <anything>? or <anything>??.           |
 --------------------------------------------------------

 sage: s=pari.vector(2,[0,0])
 sage: s[:1]
  _2 = [0]
 sage: s[:1]=[1]
 ------------------------------------------------------------
 Traceback (most recent call last):
   File "<console>", line 1, in ?
   File "gen.pyx", line 417, in gen.gen.__setitem__
 IndexError: index (slice(0, 1, None)) must be between 0 and 1
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/169#comment:3>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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