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

Jesus Cea jcea at jcea.es
Tue Jul 29 15:53:51 CEST 2008


-----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_ImportModule("builtins");
| 	    PyDict_SetItemString(d, "__builtins__", builtin_mod);
|     }
| And indeed __build_class__ is in the __builtins__ module, and seems to
| be needed by any "class" statement
| (to implement new metaclass semantics I guess)
| PyErr_NewException is better in any case.

Your are right.

| But didn't you try svnmerge? there are other py3k changes you may want
to keep.

The source has diverged so much, no hope for an automated merge.

In any case, 3.0 compatibility is on the works.

- --
Jesus Cea Avion                         _/_/      _/_/_/        _/_/_/
jcea at jcea.es - http://www.jcea.es/     _/_/    _/_/  _/_/    _/_/  _/_/
jabber / xmpp:jcea at jabber.org         _/_/    _/_/          _/_/_/_/_/
.                              _/_/  _/_/    _/_/          _/_/  _/_/
"Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBSI8g75lgi5GaxT1NAQJsYAP5Ad65VOIlDbSAv/XFPzbmy8HK9N45mSx3
BVg73MgilBj7KvY5Z4uMuTsZiLq6e8jqEN4nr6Tov3jfLd7vpASPSQxkP+nwFDO0
Hv8wz2EXPJ16Lb+lPKuCNU03oBW8rXBud/A0osGV+h0DZbfuz+Zi3gyA2KEUR3ot
zs6NtXngM5Y=
=LuVu
-----END PGP SIGNATURE-----


More information about the Python-3000 mailing list