Re: [Cython] Odd behavior with std::string and .decode()

2012-07-05 Thread Stefan Behnel
Hi Barry, Barry Warsaw, 06.07.2012 00:29: > I'm currently exploring using Cython to provide new Python 3 bindings for > Xapian. I'm pretty much a Cython n00b but the documentation is great, and I > was able to pretty quickly get something really simple working. I'm using > Cython 0.15 on Ubuntu

Re: [Cython] [cython-users] C++: how to handle failures of 'new'?

2012-07-05 Thread Dag Sverre Seljebotn
mark florisson wrote: >On 5 July 2012 21:46, Dag Sverre Seljebotn >wrote: >> >> >> mark florisson wrote: >> >>>On 3 July 2012 20:15, Robert Bradshaw wrote: On Tue, Jul 3, 2012 at 11:43 AM, Dag Sverre Seljebotn wrote: > On 07/03/2012 08:23 PM, Robert Bradshaw wrote: >>

[Cython] Odd behavior with std::string and .decode()

2012-07-05 Thread Barry Warsaw
I'm currently exploring using Cython to provide new Python 3 bindings for Xapian. I'm pretty much a Cython n00b but the documentation is great, and I was able to pretty quickly get something really simple working. I'm using Cython 0.15 on Ubuntu 12.04 with Python 3.2 and Xapian 1.2.12. I've push

Re: [Cython] [cython-users] C++: how to handle failures of 'new'?

2012-07-05 Thread mark florisson
On 5 July 2012 21:46, Dag Sverre Seljebotn wrote: > > > mark florisson wrote: > >>On 3 July 2012 20:15, Robert Bradshaw wrote: >>> On Tue, Jul 3, 2012 at 11:43 AM, Dag Sverre Seljebotn >>> wrote: On 07/03/2012 08:23 PM, Robert Bradshaw wrote: > > On Tue, Jul 3, 2012 at 11:11 AM, St

Re: [Cython] [cython-users] C++: how to handle failures of 'new'?

2012-07-05 Thread Dag Sverre Seljebotn
mark florisson wrote: >On 3 July 2012 20:15, Robert Bradshaw wrote: >> On Tue, Jul 3, 2012 at 11:43 AM, Dag Sverre Seljebotn >> wrote: >>> On 07/03/2012 08:23 PM, Robert Bradshaw wrote: On Tue, Jul 3, 2012 at 11:11 AM, Stefan Behnel wrote: > > Robert Bradshaw, 03.07.201

Re: [Cython] [cython-users] C++: how to handle failures of 'new'?

2012-07-05 Thread Stefan Behnel
mark florisson, 05.07.2012 20:47: > On 3 July 2012 20:15, Robert Bradshaw wrote: >> On Tue, Jul 3, 2012 at 11:43 AM, Dag Sverre Seljebotn >>> Though I guess one might want to try to pull out the try-catch to at least >>> only one per code line rather than one per SimpleCallNode. >> >> Or even highe

Re: [Cython] [cython-users] C++: how to handle failures of 'new'?

2012-07-05 Thread mark florisson
On 3 July 2012 20:15, Robert Bradshaw wrote: > On Tue, Jul 3, 2012 at 11:43 AM, Dag Sverre Seljebotn > wrote: >> On 07/03/2012 08:23 PM, Robert Bradshaw wrote: >>> >>> On Tue, Jul 3, 2012 at 11:11 AM, Stefan Behnel >>> wrote: Robert Bradshaw, 03.07.2012 19:58: > > On Tue, Jul 3,

[Cython] Cython+PyPy benchmarks

2012-07-05 Thread Stefan Behnel
Hi, I set up a Jenkins job to run a couple of (simple) benchmarks comparing Cython's current performance under CPython and PyPy. Note that these are C-API intensive benchmarks by design. https://sage.math.washington.edu:8091/hudson/job/cython-devel-cybenchmarks-pypy/lastSuccessfulBuild/artifact/b