Jesús Cea Avión <[EMAIL PROTECTED]> added the comment: Yes. My idea is to port the python code as-is, using "2to3", and update the C code with conditional compilation, to keep a single codebase.
I'm having issues with the compatibility. In particular, my code has the following line: """ staticforward PyTypeObject DB_Type, DBCursor_Type, DBEnv_Type, DBTxn_Type, DBLock_Type; """ Compiling this code fails with the following error (when compiling against Python 3.0): """ Modules/_bsddb.c:241: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PyTypeObject' """ Compiling the same code against Python 2.x, works. Ideas welcomed :). ---------- title: bsddb 4.6.4 needs to be ported to Python 3.0 -> bsddb3 needs to be ported to Python 3.0 _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2887> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com