[sage-devel] Re: Python/C API

2007-02-21 Thread Joshua Kantor
There is no reference counting in C because C does not do automatic garbage collection, you have to do that yourself when you write C. If you don't free memory you allocated you just get a memory leak it won't automatically notice because it has no way of knowing whether or not that memory is act

[sage-devel] Re: Python/C API

2007-02-21 Thread Robert Miller
FYI this is a completely hypothetical situation here. I am not doing any developing in the Python/C API, and may never do so. But I'm experimenting with different levels of architecture, mainly just to see how things work. Right now the situation is, suppose I have some function I want to call fro

[sage-devel] Re: Python/C API

2007-02-21 Thread Robert Bradshaw
I'll jump in and answer you questions. On Feb 21, 2007, at 10:18 AM, Robert Miller wrote: > David, > > I was wondering if you could help get me started here. I've been > reading the Python/C API, and I've been browsing both sides of a lot > of Pyrex: for argument's sake, let's say the Complex do