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)

Re: [Python-Dev] Pronouncement needed in issue9675

2010-09-29 Thread Nick Coghlan
On Wed, Sep 29, 2010 at 9:03 AM, Jesus Cea j...@jcea.es 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,

Re: [Python-Dev] Pronouncement needed in issue9675

2010-09-28 Thread Amaury Forgeot d'Arc
Hi, 2010/9/28 Jesus Cea j...@jcea.es: 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

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 j...@jcea.es 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

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 were

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 Antoine Pitrou
On Tue, 28 Sep 2010 04:44:08 +0200 Jesus Cea j...@jcea.es 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

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 dmalc...@redhat.com 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

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 gu...@python.org 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

Re: [Python-Dev] Pronouncement needed in issue9675

2010-09-28 Thread Amaury Forgeot d'Arc
2010/9/28 Nick Coghlan ncogh...@gmail.com: 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 Guido van Rossum
On Tue, Sep 28, 2010 at 3:23 PM, Amaury Forgeot d'Arc amaur...@gmail.com wrote: 2010/9/28 Nick Coghlan ncogh...@gmail.com: 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

Re: [Python-Dev] Pronouncement needed in issue9675

2010-09-28 Thread Amaury Forgeot d'Arc
2010/9/29 Guido van Rossum gu...@python.org: 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

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 amaur...@gmail.com wrote: 2010/9/28 Nick Coghlan ncogh...@gmail.com: Converting to a Py3k warning sounds like the best option. Can someone please

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 amaur...@gmail.com wrote: 2010/9/29 Guido van Rossum gu...@python.org: 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.

Re: [Python-Dev] Pronouncement needed in issue9675

2010-09-28 Thread Amaury Forgeot d'Arc
2010/9/29 Guido van Rossum gu...@python.org: On Tue, Sep 28, 2010 at 4:02 PM, Amaury Forgeot d'Arc amaur...@gmail.com wrote: 2010/9/29 Guido van Rossum gu...@python.org: Can someone please explain why converting to a PyCapsule object is not an option? PyCObject_AsVoidPtr() and

Re: [Python-Dev] Pronouncement needed in issue9675

2010-09-28 Thread Benjamin Peterson
2010/9/28 Amaury Forgeot d'Arc amaur...@gmail.com: 2010/9/29 Guido van Rossum gu...@python.org: 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

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 j...@jcea.es wrote: On 29/09/10 00:56, Guido van Rossum wrote: On Tue, Sep 28, 2010 at 3:23 PM, Amaury Forgeot d'Arc amaur...@gmail.com wrote: 2010/9/28 Nick Coghlan ncogh...@gmail.com: Converting to a Py3k warning sounds like the best option. Can

[Python-Dev] Pronouncement needed in issue9675

2010-09-27 Thread Jesus Cea
-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 were updated to Capsule (with a CObject compatibility layer), except