[Cython] C++ issue

Jackson Hoy Loper nbspcorp at loper.org
Fri Oct 24 01:44:43 CEST 2008


On Thu, Oct 23, 2008 at 5:34 PM, Hoy Loper <hloper at gmail.com> wrote:
>> As for things like C++ iterators, you can use them as
>> long as you're willing to heap-allocate them and explicitly
>
> Alas, not strictly true.  STL containers don't return pointers to
> iterators, they return iterators themselves.  And they're not lvalues,
> so you can't take their address.  One sometimes rather needs to be
> able to handle the data itself, rather than a pointer to it.  I know
> it is unpythonic, but that's the way STL is built.  Or possibly I am
> missing something :).
>
> Hoy
>


More information about the Cython-dev mailing list