Re: [Python-3000] Strange code in bsddb that doesn't work in Python 3.0

2008-07-29 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Amaury Forgeot d'Arc wrote: | I suppose you just copied the _bsddb.c file from trunk, right? Here is | the problem. | The current version of _bsddb.c in the py3k branch contains the lines: | { | PyObject *builtin_mod = PyImport_ImportMod

Re: [Python-3000] Strange code in bsddb that doesn't work in Python 3.0

2008-07-21 Thread Amaury Forgeot d'Arc
2008/7/21 Jesus Cea <[EMAIL PROTECTED]>: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Trying to find why I can't import bsddb in python3.0, I have found that > this code fails: > > """ > ~/* Some magic to make DBNotFoundError and DBKeyEmptyError derive > ~ * from both DBError and K

[Python-3000] Strange code in bsddb that doesn't work in Python 3.0

2008-07-21 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Trying to find why I can't import bsddb in python3.0, I have found that this code fails: """ ~/* Some magic to make DBNotFoundError and DBKeyEmptyError derive ~ * from both DBError and KeyError, since the API only supports ~ * using one b