[Cython] Lists?
Hoyt Koepke
hoytak at cs.ubc.ca
Mon Sep 1 20:56:13 CEST 2008
Hi,
> That would be excellent! It would necessitate using C++, which is not
> going to be the default Cython output but would be very hand for
> people wanting to use it.
Okay, encouragement is a good motivator. I'll try to get to it.
One of my main questions when I initially thought about it is how to
handle the operator methods in c++. When I define __getitem__, I have
to define it as a python function using def, so is it compiled
directly into c code? To ask it another way, is there any way to
create a class A such that I can write
a = A(...)
a[i] += 1
and have the a[i] += 1 be entirely c(++) code?
--Hoyt
> Another option would be something like http://wiki.cython.org/
> enhancements/arraytypes, though this is probably further off in the
> future than wrapping several C++ containers.
Okay, I'll look into it. Thanks.
-- Hoyt
P.S. Robert -- I see you're at UW. I'm starting a PhD in stats there
in a few weeks. Just down the hall from the math department, IIRC.
I'll drop by some time and say hi.
+++++++++++++++++++++++++++++++++++
Hoyt Koepke
UBC Department of Computer Science
http://www.cs.ubc.ca/~hoytak/
hoytak at gmail.com
+++++++++++++++++++++++++++++++++++
More information about the Cython-dev
mailing list