Re: [Python-Dev] Pronouncement needed in issue9675

2010-10-04 Thread Larry Hastings
Hi--sorry to be a little late to the discussion. I'm the putz who backported capsules (and monkeyed with CObject) for 2.7. On 09/27/2010 07:44 PM, Jesus Cea wrote: http://bugs.python.org/issue9675 Long history sort: Python 2.7 backported Capsule support and (incorrectly, in my opinion) ma

Re: [Python-Dev] Pronouncement needed in issue9675

2010-09-29 Thread Nick Coghlan
On Wed, Sep 29, 2010 at 9:03 AM, Jesus Cea wrote: > About converting the deprecation warning to a py3k warning... Would a > py3k warning be converted to an error when python is invoked as "-We"?. > If that is the case, we are in the same situation. To unpack Guido's response slightly, Py3k specif

Re: [Python-Dev] Pronouncement needed in issue9675

2010-09-28 Thread Guido van Rossum
On Tue, Sep 28, 2010 at 4:03 PM, Jesus Cea wrote: > On 29/09/10 00:56, Guido van Rossum wrote: >> On Tue, Sep 28, 2010 at 3:23 PM, Amaury Forgeot d'Arc >> wrote: >>> 2010/9/28 Nick Coghlan : Converting to a Py3k warning sounds like the best option. >>> >>> Can someone please explain why conv

Re: [Python-Dev] Pronouncement needed in issue9675

2010-09-28 Thread Benjamin Peterson
2010/9/28 Amaury Forgeot d'Arc : > 2010/9/29 Guido van Rossum : >>> Can someone please explain why converting to a PyCapsule object is not >>> an option? >>> PyCObject_AsVoidPtr() and PyCObject_Import() accept Capsules and will >>> work as before. >> >> Because bsddb is an external module? > > Yes,

Re: [Python-Dev] Pronouncement needed in issue9675

2010-09-28 Thread Amaury Forgeot d'Arc
2010/9/29 Guido van Rossum : > On Tue, Sep 28, 2010 at 4:02 PM, Amaury Forgeot d'Arc > wrote: >> 2010/9/29 Guido van Rossum : Can someone please explain why converting to a PyCapsule object is not an option? PyCObject_AsVoidPtr() and PyCObject_Import() accept Capsules and will

Re: [Python-Dev] Pronouncement needed in issue9675

2010-09-28 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 29/09/10 01:06, Guido van Rossum wrote: >>> Because bsddb is an external module? >> >> Yes, bsddb is compiled in a separate .pyd or .so. But what does this change? > > Because it needs to support multiple Python versions from single source? Well,

Re: [Python-Dev] Pronouncement needed in issue9675

2010-09-28 Thread Guido van Rossum
On Tue, Sep 28, 2010 at 4:02 PM, Amaury Forgeot d'Arc wrote: > 2010/9/29 Guido van Rossum : >>> Can someone please explain why converting to a PyCapsule object is not >>> an option? >>> PyCObject_AsVoidPtr() and PyCObject_Import() accept Capsules and will >>> work as before. >> >> Because bsddb is

Re: [Python-Dev] Pronouncement needed in issue9675

2010-09-28 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 29/09/10 00:56, Guido van Rossum wrote: > On Tue, Sep 28, 2010 at 3:23 PM, Amaury Forgeot d'Arc > wrote: >> 2010/9/28 Nick Coghlan : >>> Converting to a Py3k warning sounds like the best option. >> >> Can someone please explain why converting to a

Re: [Python-Dev] Pronouncement needed in issue9675

2010-09-28 Thread Amaury Forgeot d'Arc
2010/9/29 Guido van Rossum : >> Can someone please explain why converting to a PyCapsule object is not >> an option? >> PyCObject_AsVoidPtr() and PyCObject_Import() accept Capsules and will >> work as before. > > Because bsddb is an external module? Yes, bsddb is compiled in a separate .pyd or .so

Re: [Python-Dev] Pronouncement needed in issue9675

2010-09-28 Thread Guido van Rossum
On Tue, Sep 28, 2010 at 3:23 PM, Amaury Forgeot d'Arc wrote: > 2010/9/28 Nick Coghlan : >> Converting to a Py3k warning sounds like the best option. > > Can someone please explain why converting to a PyCapsule object is not > an option? > PyCObject_AsVoidPtr() and PyCObject_Import() accept Capsule

Re: [Python-Dev] Pronouncement needed in issue9675

2010-09-28 Thread Amaury Forgeot d'Arc
2010/9/28 Nick Coghlan : > Converting to a Py3k warning sounds like the best option. Can someone please explain why converting to a PyCapsule object is not an option? PyCObject_AsVoidPtr() and PyCObject_Import() accept Capsules and will work as before. -- Amaury Forgeot d'Arc ___

Re: [Python-Dev] Pronouncement needed in issue9675

2010-09-28 Thread Nick Coghlan
On Tue, Sep 28, 2010 at 11:49 PM, Guido van Rossum wrote: > It strikes me that in general deprecation warnings in 2.7 don't do > anybody any good unless they're Py3k warnings. It sounds to me that > there is no shame in removing the warning in Python 2.7 (or turning it > into a Py3k warning -- nob

Re: [Python-Dev] Pronouncement needed in issue9675

2010-09-28 Thread Guido van Rossum
On Tue, Sep 28, 2010 at 8:18 AM, David Malcolm wrote: [...] > This breaks quite a few third-party modules, some with segfaults; we (as > in Fedora) ran into this building with 2.7 as the > standard /usr/bin/python for Fedora 14. > > We fixed some of them, but are advising people not to turn on war

Re: [Python-Dev] Pronouncement needed in issue9675

2010-09-28 Thread Antoine Pitrou
On Tue, 28 Sep 2010 04:44:08 +0200 Jesus Cea wrote: > > But in python 2.7 release, CObject is marked as deprecated (arg!), so > when executing python with -We (mark warnings as errors), bsddb fails. By "fails" you mean "crashes the interpreter". While the deprecation warning can be discussed, bs

Re: [Python-Dev] Pronouncement needed in issue9675

2010-09-28 Thread David Malcolm
On Tue, 2010-09-28 at 11:18 -0400, David Malcolm wrote: > On Tue, 2010-09-28 at 04:44 +0200, Jesus Cea wrote: [snip] > > Long history and links to previous pronouncements in > > http://bugs.python.org/issue9675 Re-reading my post, I realize that my wording was really unclear; sorry. > > > > My

Re: [Python-Dev] Pronouncement needed in issue9675

2010-09-28 Thread David Malcolm
On Tue, 2010-09-28 at 04:44 +0200, Jesus Cea wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > http://bugs.python.org/issue9675 > > Long history sort: Python 2.7 backported Capsule support and > (incorrectly, in my opinion) marked CObject as deprecated. > > All C modules in the stdlib

Re: [Python-Dev] Pronouncement needed in issue9675

2010-09-28 Thread Guido van Rossum
On Mon, Sep 27, 2010 at 7:44 PM, Jesus Cea wrote: > http://bugs.python.org/issue9675 > > Long history sort: Python 2.7 backported Capsule support and > (incorrectly, in my opinion) marked CObject as deprecated. > > All C modules in the stdlib were updated to Capsule (with a CObject > compatibility

Re: [Python-Dev] Pronouncement needed in issue9675

2010-09-28 Thread Amaury Forgeot d'Arc
Hi, 2010/9/28 Jesus Cea : > http://bugs.python.org/issue9675 > > Long history sort: Python 2.7 backported Capsule support and > (incorrectly, in my opinion) marked CObject as deprecated. > > All C modules in the stdlib were updated to Capsule (with a CObject > compatibility layer), except BSDDB, b