[Python-3000] bsddb ownership, buffer protocol and 3.0

2008-07-19 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm actively working porting current bsddb code to python 3.0. The work is going fine. Current code compiles in both Python 2.[3-6] and 3.0. I have some issues with module initialization: """ [EMAIL PROTECTED] bsddb3]$ python3.0 Python 3.0b2 (r30b2:6

[Python-3000] Removing bsddb module from py3k (was Re: [Python-Dev] No beta2 tonight)

2008-07-19 Thread Nick Coghlan
Josiah Carlson wrote: On Fri, Jul 18, 2008 at 11:03 AM, Fred Drake <[EMAIL PROTECTED]> wrote: On Jul 18, 2008, at 1:45 PM, Josiah Carlson wrote: It's entirely possible that I know very little about what was being made available via the bsddb module, but to match the API of what is included in t

Re: [Python-3000] bsddb ownership, buffer protocol and 3.0

2008-07-19 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Jul 19, 2008, at 4:00 AM, Jesus Cea wrote: I acknowledge that some people would like to remove bsddb from the standard lib, arguing it is a maintenance nightmare. I consider, then, that the right thing to do would be to (fully) delegate this code

Re: [Python-3000] Extension modules moving to py3k

2008-07-19 Thread Lars Immisch
Hi, I'm still loooking for a *GOOD* python2->python3 conversion guide for C language modules. Me too, but I haven't even found not so good ones yet. I'd love to help on this (even if the only reason is selfish - I believe pywin32 will *need* it while 2.x remains important.) Who would get

Re: [Python-3000] Extension modules moving to py3k

2008-07-19 Thread Guilherme Polo
On Sat, Jul 19, 2008 at 9:09 AM, Lars Immisch <[EMAIL PROTECTED]> wrote: > Hi, > >>> I'm still loooking for a *GOOD* python2->python3 conversion guide for C >>> language modules. > > Me too, but I haven't even found not so good ones yet. Have you looked at the Modules/xx*.c files ? It is not a con

Re: [Python-3000] Int and Long unification (was Re: Help replacing Py_FindMethod)

2008-07-19 Thread Benjamin Peterson
On Sat, Jul 19, 2008 at 12:39 AM, Jesus Cea <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Jesus Cea wrote: > | Good night everybody!. > | > | Working on the Python3.0 support for bsddb I see that "Py_FindMethod" > | was just removed in Python last beta. > > Neverm

Re: [Python-3000] Int and Long unification (was Re: Help replacing Py_FindMethod)

2008-07-19 Thread Martin v. Löwis
> Now I see another issue: I just changed "PyInt_*" in my code to > "PyLong_*" (since PyInt_* functions don't exist in Python 3.0). But > since an integer fails "PyLong_Check()" in Python 2.*, how can I check > for integers portably between Python 2.[3-6] and Python 3.0?. I would > like to avoid co

Re: [Python-3000] Int and Long unification (was Re: Help replacing Py_FindMethod)

2008-07-19 Thread Benjamin Peterson
On Sat, Jul 19, 2008 at 8:51 AM, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: >> Now I see another issue: I just changed "PyInt_*" in my code to >> "PyLong_*" (since PyInt_* functions don't exist in Python 3.0). But >> since an integer fails "PyLong_Check()" in Python 2.*, how can I check >> for in

Re: [Python-3000] Int and Long unification (was Re: Help replacing Py_FindMethod)

2008-07-19 Thread Martin v. Löwis
> (since PyInt_* functions don't exist in Python 3.0). Some PyInt_ functions exist in intobject.h, which you need to include explicitly. > But > since an integer fails "PyLong_Check()" in Python 2.*, how can I check > for integers portably between Python 2.[3-6] and Python 3.0?. I would > like to

Re: [Python-3000] Removing bsddb module from py3k (was Re: [Python-Dev] No beta2 tonight)

2008-07-19 Thread Josiah Carlson
On Sat, Jul 19, 2008 at 3:22 AM, Nick Coghlan <[EMAIL PROTECTED]> wrote: > Josiah Carlson wrote: >> >> On Fri, Jul 18, 2008 at 11:03 AM, Fred Drake <[EMAIL PROTECTED]> wrote: >>> >>> On Jul 18, 2008, at 1:45 PM, Josiah Carlson wrote: It's entirely possible that I know very little about wh

Re: [Python-3000] bsddb ownership, buffer protocol and 3.0

2008-07-19 Thread Gregory P. Smith
On Sat, Jul 19, 2008 at 1:00 AM, Jesus Cea <[EMAIL PROTECTED]> wrote: > > Anybody is able to compile current bsddb in 3.0 svn?. May I overwrite > current version with my own one, updated with your patches (except the > buffer code; I rather prefer to delay that)?. > Yes, feel free to replace it w

Re: [Python-3000] bsddb ownership, buffer protocol and 3.0

2008-07-19 Thread Brett Cannon
On Sat, Jul 19, 2008 at 1:00 AM, Jesus Cea <[EMAIL PROTECTED]> wrote: [SNIP] > I acknowledge that some people would like to remove bsddb from the > standard lib, arguing it is a maintenance nightmare. I consider, then, > that the right thing to do would be to (fully) delegate this code to me, > a g

Re: [Python-3000] bsddb ownership, buffer protocol and 3.0

2008-07-19 Thread Raymond Hettinger
From: "Brett Cannon" <[EMAIL PROTECTED]> I appreciate you want to maintain the code, Jesus, but that still makes you the single point of failure for the code. If you decide you don't want to deal with it, or are on vacation when the code breaks just before a release, it is quite possible we are s

Re: [Python-3000] [Python-Dev] Removing bsddb module from py3k (was Re: No beta2 tonight)

2008-07-19 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Josiah Carlson wrote: | On-disk key -> value dictionary. In every use of bsddb that I've seen | (or done myself), that's been the extent of it's use. That's what I | *was* offering. But it seems that everyone has had experience with | bsddb on a fa