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
? Or in another way?
Thank you very much again. Regards,
Dan
- PŮVODNÍ ZPRÁVA -
Od: Robert Kern robert.k...@gmail.com
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,
I have kind
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
Great, it's working! Thank you very much, Robert!
Dan T.
- PŮVODNÍ ZPRÁVA -
Od: Robert Kern robert.k...@gmail.com
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 Robert
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
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
2011/12/27 roze...@volny.cz:
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: