This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | jcea |
|---|---|
| Recipients | alexandre.vassalotti, gregory.p.smith, jcea |
| Date | 2008年05月29日.11:47:29 |
| SpamBayes Score | 0.034601964 |
| Marked as misclassified | No |
| Message-id | <1212061653.97.0.562874828968.issue2887@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
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 :). |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008年05月29日 11:47:34 | jcea | set | spambayes_score: 0.034602 -> 0.034601964 recipients: + jcea, gregory.p.smith, alexandre.vassalotti |
| 2008年05月29日 11:47:34 | jcea | set | spambayes_score: 0.034602 -> 0.034602 messageid: <1212061653.97.0.562874828968.issue2887@psf.upfronthosting.co.za> |
| 2008年05月29日 11:47:32 | jcea | link | issue2887 messages |
| 2008年05月29日 11:47:31 | jcea | create | |