Re: Slices when extending python with C++

2011-12-28 Thread rozelak
Great, it's working! Thank you very much, Robert! Dan T. - PŮVODNÍ ZPRÁVA - Od: "Robert Kern" Komu: python-list@python.org Předmět: Re: Slices when extending python with C++ Datum: 28.12.2011 - 14:18:36 > On 12/28/11 1:01 PM, roze...@volny.cz wrote: > > Dear R

Re: Slices when extending python with C++

2011-12-28 Thread Robert Kern
On 12/28/11 1:01 PM, roze...@volny.cz wrote: Dear Robert, thank you very much for your answer. I understand what you mean and I have looked at slice object and C-api methods it provides. It should be easy to implement it. The only question is how exactly yo implement the general getter, since s

Re: Slices when extending python with C++

2011-12-28 Thread rozelak
another way? Thank you very much again. Regards, Dan - PŮVODNÍ ZPRÁVA - Od: "Robert Kern" Komu: python-list@python.org Předmět: Re: Slices when extending python with C++ Datum: 28.12.2011 - 10:24:42 > On 12/27/11 11:02 PM, roze...@volny.cz wrote: > > Hallo, > &g

Re: Slices when extending python with C++

2011-12-28 Thread Robert Kern
On 12/27/11 11:02 PM, roze...@volny.cz wrote: Hallo, I have kind of special question when extening python with C++ implemented modules. I try to implement a class, behaving also like an array. And I need to implement slice-getters. I implemented PySequenceMethods.sq_slice to get "simple" slices

Re: Slices when extending python with C++

2011-12-27 Thread Ian Kelly
2011/12/27 : > Hallo, > I have kind of special question when extening python with C++ > implemented modules. > > I try to implement a class, behaving also like an array. And I need > to implement slice-getters. I implemented PySequenceMethods.sq_slice > to get "simple" slices like: > > myobj[x:y]

Slices when extending python with C++

2011-12-27 Thread rozelak
Hallo, I have kind of special question when extening python with C++ implemented modules. I try to implement a class, behaving also like an array. And I need to implement slice-getters. I implemented PySequenceMethods.sq_slice to get "simple" slices like: myobj[x:y] It works perfectly, without p

Slices when extending python with C++

2011-12-27 Thread rozelak
Hallo, I have kind of special question when extening python with C++ implemented modules. I try to implement a class, behaving also like an array. And I need to implement slice-getters. I implemented PySequenceMethods.sq_slice to get "simple" slices like: myobj[x:y] It works perfectly, without p