More python 2.7 fun: deprecation of PyCObject API

2010-08-13 Thread David Malcolm
(Sorry about the length of this email) Python 2.7 deprecated the PyCObject API in favor of a new "capsule" API. http://docs.python.org/dev/whatsnew/2.7.html#capsules The deprecations are set to "ignore" by default, so in theory the API still works: every time an extension uses the API, a deprec

Re: More python 2.7 fun: deprecation of PyCObject API

2010-08-13 Thread Jeff Spaleta
On Fri, Aug 13, 2010 at 10:20 AM, David Malcolm wrote: > Personally, I'm leaning towards option (a) above (the "don't override > warnings" option): closing the various as WONTFIX, and adding a section > to the release notes, whilst working towards fixing this in Fedora 15. > Affected applications

Re: More python 2.7 fun: deprecation of PyCObject API

2010-08-13 Thread Toshio Kuratomi
On Fri, Aug 13, 2010 at 02:20:51PM -0400, David Malcolm wrote: > (Sorry about the length of this email) > > Python 2.7 deprecated the PyCObject API in favor of a new "capsule" API. > http://docs.python.org/dev/whatsnew/2.7.html#capsules > > The deprecations are set to "ignore" by default, so in

Re: More python 2.7 fun: deprecation of PyCObject API

2010-08-13 Thread David Malcolm
On Fri, 2010-08-13 at 19:38 -0400, Toshio Kuratomi wrote: > On Fri, Aug 13, 2010 at 02:20:51PM -0400, David Malcolm wrote: > > (Sorry about the length of this email) > > > > Python 2.7 deprecated the PyCObject API in favor of a new "capsule" API. > > http://docs.python.org/dev/whatsnew/2.7.html#

Re: More python 2.7 fun: deprecation of PyCObject API

2010-08-13 Thread David Malcolm
On Fri, 2010-08-13 at 13:44 -0800, Jeff Spaleta wrote: > On Fri, Aug 13, 2010 at 10:20 AM, David Malcolm wrote: > > Personally, I'm leaning towards option (a) above (the "don't override > > warnings" option): closing the various as WONTFIX, and adding a section > > to the release notes, whilst wor

Re: More python 2.7 fun: deprecation of PyCObject API

2010-08-13 Thread Jeff Spaleta
On Fri, Aug 13, 2010 at 4:24 PM, David Malcolm wrote: > Sorry about this. You don't know how sorry! You've made it onto my Christmas Card list. Which means I send you a live puppy in the mail COD overnight delivery for Christmas day to your place of work. Now you have a choice. You can either b

Re: More python 2.7 fun: deprecation of PyCObject API

2010-08-13 Thread Toshio Kuratomi
On Fri, Aug 13, 2010 at 08:24:07PM -0400, David Malcolm wrote: > On Fri, 2010-08-13 at 19:38 -0400, Toshio Kuratomi wrote: > > On Fri, Aug 13, 2010 at 02:20:51PM -0400, David Malcolm wrote: > > > Possible ways forward: > > > (a) don't fix this; treat enabling the warning in the "Doctor, it > > >

Re: More python 2.7 fun: deprecation of PyCObject API

2010-08-14 Thread Kevin Kofler
Toshio Kuratomi wrote: > This already sounds like something that is too involved for maintainers > and package reviewers to do. I think this might be something that doesn't > leave the drawing board without tooling to at least do part of the > detective work. Well, people, as opposed to automated

Re: More python 2.7 fun: deprecation of PyCObject API

2010-08-14 Thread Richard W.M. Jones
On Fri, Aug 13, 2010 at 02:20:51PM -0400, David Malcolm wrote: > (Sorry about the length of this email) > > Python 2.7 deprecated the PyCObject API in favor of a new "capsule" API. > http://docs.python.org/dev/whatsnew/2.7.html#capsules > (b) try to fix the ones that are self-contained; send f

Re: More python 2.7 fun: deprecation of PyCObject API

2010-08-16 Thread David Malcolm
On Fri, 2010-08-13 at 21:57 -0400, Toshio Kuratomi wrote: > On Fri, Aug 13, 2010 at 08:24:07PM -0400, David Malcolm wrote: > > On Fri, 2010-08-13 at 19:38 -0400, Toshio Kuratomi wrote: > > > On Fri, Aug 13, 2010 at 02:20:51PM -0400, David Malcolm wrote: > > > > Possible ways forward: > > > > (a)

Re: More python 2.7 fun: deprecation of PyCObject API

2010-08-16 Thread David Malcolm
On Sat, 2010-08-14 at 19:42 +0100, Richard W.M. Jones wrote: > On Fri, Aug 13, 2010 at 02:20:51PM -0400, David Malcolm wrote: > > (Sorry about the length of this email) > > > > Python 2.7 deprecated the PyCObject API in favor of a new "capsule" API. > > http://docs.python.org/dev/whatsnew/2.7.h

Re: More python 2.7 fun: deprecation of PyCObject API

2010-08-16 Thread David Malcolm
On Mon, 2010-08-16 at 14:19 -0400, David Malcolm wrote: > On Sat, 2010-08-14 at 19:42 +0100, Richard W.M. Jones wrote: > > On Fri, Aug 13, 2010 at 02:20:51PM -0400, David Malcolm wrote: [snip] > Porting to the capsule API, I believe the code needs to look something > like this (caution: untested)

Re: More python 2.7 fun: deprecation of PyCObject API

2010-08-16 Thread Toshio Kuratomi
On Mon, Aug 16, 2010 at 02:03:51PM -0400, David Malcolm wrote: > On Fri, 2010-08-13 at 21:57 -0400, Toshio Kuratomi wrote: > > > > On Fri, Aug 13, 2010 at 02:20:51PM -0400, David Malcolm wrote: > > If this is okay, then I'd modify your point (a) to be this plan: > > > > When code that turns all wa

Re: More python 2.7 fun: deprecation of PyCObject API

2010-08-17 Thread Richard W.M. Jones
Thanks for the tip. It's sort of annoying that this new API is not in Python < 2.7, necessitating a bunch of #ifdef's in the code. This is the patch I came up with: https://www.redhat.com/archives/libguestfs/2010-August/msg00053.html Rich. -- Richard Jones, Virtualization Group, Red Hat http:

Re: More python 2.7 fun: deprecation of PyCObject API

2010-08-17 Thread David Malcolm
On Mon, 2010-08-16 at 15:14 -0400, Toshio Kuratomi wrote: > On Mon, Aug 16, 2010 at 02:03:51PM -0400, David Malcolm wrote: > > On Fri, 2010-08-13 at 21:57 -0400, Toshio Kuratomi wrote: > > > > > On Fri, Aug 13, 2010 at 02:20:51PM -0400, David Malcolm wrote: > > > If this is okay, then I'd modify