On Wed, Aug 8, 2012 at 10:12 PM, Stefan Behnel wrote:
> Robert Bradshaw, 09.08.2012 01:45:
>> On Tue, Aug 7, 2012 at 2:53 AM, Stefan Behnel wrote:
>>> given how ubiquitous manual memory management is in C, I think it would be
>>> nice to let Cython generate the exception raising also for C, not on
Robert Bradshaw, 09.08.2012 01:45:
> On Tue, Aug 7, 2012 at 2:53 AM, Stefan Behnel wrote:
>> given how ubiquitous manual memory management is in C, I think it would be
>> nice to let Cython generate the exception raising also for C, not only for
>> C++. The difference is this:
>>
>> cdef extern f
On Tue, Aug 7, 2012 at 2:53 AM, Stefan Behnel wrote:
> Hi,
>
> given how ubiquitous manual memory management is in C, I think it would be
> nice to let Cython generate the exception raising also for C, not only for
> C++. The difference is this:
>
> cdef extern from "...":
> char* make_new
mark florisson, 07.08.2012 13:00:
> On 7 August 2012 11:59, mark florisson wrote:
>> On 7 August 2012 11:44, Stefan Behnel wrote:
>>> mark florisson, 07.08.2012 12:33:
I'd say write a wrapper function that does the check, or use an object
that encapsulates the buffer allocation and functi
On 7 August 2012 11:59, mark florisson wrote:
> On 7 August 2012 11:44, Stefan Behnel wrote:
>> mark florisson, 07.08.2012 12:33:
>>> I'd say write a wrapper function that does the check, or use an object
>>> that encapsulates the buffer allocation and functions. I'm not sure
>>> we'd want extra
On 7 August 2012 11:44, Stefan Behnel wrote:
> mark florisson, 07.08.2012 12:33:
>> I'd say write a wrapper function that does the check, or use an object
>> that encapsulates the buffer allocation and functions. I'm not sure
>> we'd want extra syntax for this. Calling functions is already
>> comp
mark florisson, 07.08.2012 12:33:
> I'd say write a wrapper function that does the check, or use an object
> that encapsulates the buffer allocation and functions. I'm not sure
> we'd want extra syntax for this. Calling functions is already
> complicated, this will complicate it even further.
Funn
On 7 August 2012 10:53, Stefan Behnel wrote:
> Hi,
>
> given how ubiquitous manual memory management is in C, I think it would be
> nice to let Cython generate the exception raising also for C, not only for
> C++. The difference is this:
>
> cdef extern from "...":
> char* make_new_buffer(
Hi,
given how ubiquitous manual memory management is in C, I think it would be
nice to let Cython generate the exception raising also for C, not only for
C++. The difference is this:
cdef extern from "...":
char* make_new_buffer() except NULL as MemoryError
int append_to_buffer(char