octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pythonic (Questions about the bugs and the needed features)


From: Doug Stewart
Subject: Re: Pythonic (Questions about the bugs and the needed features)
Date: Mon, 23 Mar 2020 10:59:49 -0400



On Mon, Mar 23, 2020 at 9:22 AM Nader Nabil <address@hidden> wrote:
1-  
Element indexing on a list or other sequence object with a range or set of indices doesn't return the right number of output arguments.

code :

x = py.list ({1, 2, 3, 4, 5, 6});
x{1:3}
y = {x{1:3}};

current output : 
y =
{
  [1,1] =
  {
    [1,1] =  1
    [1,2] =  2
    [1,3] =  3
  }
}

 Is this the correct wanted output : 
y = [1.0 , 2.0 , 3.0]  ?
i don't understand what is the problem here . 
try
q=cell2mat([x{1:3}])


 

2 - Operate on Python objects using standard Octave arithmetic and logical operators

What python objects specifically is meant ? 
List ? , so this means that i can do (list1 == list2) ? , or list1 + list2 ?? 

3- Load and save Python objects to Octave data files using the standard load/save commands

bug #45833

what is the steps to reproduce that bug  , i need an example 
and another example for load and save commands that works
correctly with normal octave objects.




--
DASCertificate for 206392


reply via email to

[Prev in Thread] Current Thread [Next in Thread]