Re: [Python-Dev] [Python-checkins] TRUNK IS UNFROZEN, available for 2.6 work if you are so inclined
On 8/18/06, Georg Brandl <[EMAIL PROTECTED]> wrote: > > I'd like to commit this. It fixes bug 1542051. > > Index: Objects/exceptions.c ... Georg, Did you still want to fix this? I don't remember anything happening with it. I don't see where _PyObject_GC_TRACK is called, so I'm not sure why _PyObject_GC_UNTRACK is necessary. You should probably add the patch to the bug report and we can discuss there. n ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] [Python-checkins] TRUNK IS UNFROZEN, available for 2.6 work if you are so inclined
On Thu, Aug 17, 2006 at 09:07:53PM +0200, Georg Brandl wrote: > Jack Diederich wrote: > > > Looks good to me. While you are on that page do you want to change > > > > l = PyList_New(3); > > x = PyInt_FromLong(1L); > > PySequence_SetItem(l, 0, x); Py_DECREF(x); > > x = PyInt_FromLong(2L); > > PySequence_SetItem(l, 1, x); Py_DECREF(x); > > x = PyString_FromString("three"); > > PySequence_SetItem(l, 2, x); Py_DECREF(x); > > > > to > > > > l = PyList_New(3); > > x = PyInt_FromLong(1L); > > PyList_SetItem(l, 0, x); > > x = PyInt_FromLong(2L); > > PyList_SetItem(l, 1, x); > > x = PyString_FromString("three"); > > PyList_SetItem(l, 2, x); > > > > The example code causes segfaults and probably always has (at last to 2.2) > > Interesting! From a naive POV, the docs' example is quite right. > > The segfault occurs because list_ass_item Py_DECREFs the old item (which > segfaults because the old items are NULL in a newly created list). > PyList_SetItem does a Py_XDECREF. > > The docs to PyList_New, however, do not explicitly say that the new list > must only be filled using PyList_SetItem. > > So please, someone, decide what's broken here! The docs, this is from a thread yesterday and today on c.l.py http://groups.google.com/group/comp.lang.python/browse_frm/thread/158c8797ee2dccab/ -Jack ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] [Python-checkins] TRUNK IS UNFROZEN, available for 2.6 work if you are so inclined
On Friday 18 August 2006 00:47, Martin v. Löwis wrote: > Anthony Baxter schrieb: > > Right now, I don't really care about the trunk - although if you break > > the buildbot [...] > > Thanks for reminding me. I just added a buildbot builder for the 2.5 > branch (actually, the builder was already there, but I connected it > with the web server), so you can now see the status of the 2.5 branch > at > > http://www.python.org/dev/buildbot/2.5/ You beat me to it by a couple of minutes - I'd added the entry to the master.cfg file but hadn't updated the apache config yet. Anthoiny -- Anthony Baxter <[EMAIL PROTECTED]> It's never too late to have a happy childhood. ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] [Python-checkins] TRUNK IS UNFROZEN, available for 2.6 work if you are so inclined
Anthony Baxter schrieb: > Right now, I don't really care about the trunk - although if you break the > buildbot [...] Thanks for reminding me. I just added a buildbot builder for the 2.5 branch (actually, the builder was already there, but I connected it with the web server), so you can now see the status of the 2.5 branch at http://www.python.org/dev/buildbot/2.5/ Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com