A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2005-December/058502.html below:

[Python-Dev] ast-objects branch created

[Python-Dev] ast-objects branch created [Python-Dev] ast-objects branch createdJeremy Hylton jeremy at alum.mit.edu
Wed Dec 7 23:21:14 CET 2005
On 12/7/05, Delaney, Timothy (Tim) <tdelaney at avaya.com> wrote:
> "Martin v. Löwis" wrote:
>
> > Nick Coghlan wrote:
> >> As Fredrik pointed out a while back, the PyObject approach doesn't
> >> *have* to involve manual decref operations - PyObject's come with a
> >> ready made arena structure, in the form of PyList.
> >
> > That doesn't really work: PyList_Append (which you would have to use)
> > duplicates the reference, so you would still have to decref it
> > explicitly.
>
> Hmm - perhaps we should have a set of Arena functions/macros e.g. PyArena_Add - works like PyList_Append, but doesn't duplicate the reference (or immediately decrefs it).
>
> I'm sure there are other parts of the code base that would benefit from this.

There is such a function on the ast-arena branch.  The current
implementation uses a linked list, so it consumes more memory than
using a PyList.

Jeremy
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4