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 Robert,
> >
> > thank you ver
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 sq_item you mention (assume you mean
PySequence
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 prob
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
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