commit | 1de5a722d67558d975082789f36156bd5ad5bb88 | [log] [tgz] |
---|---|---|
author | Fred Drake <fdrake@acm.org> | Tue Mar 12 21:49:44 2002 +0000 |
committer | Fred Drake <fdrake@acm.org> | Tue Mar 12 21:49:44 2002 +0000 |
tree | 8484f416f8ec6ecbcd4ddd969c1f4c0de077439f | |
parent | 193a3f6d37c1440b049f7b1c62ff30c1d8cae38a [diff] |
Change the example code to prefer PyModule_Add*() instead of using the module dictionary directly. Also, be more careful about not re-initializing globals in the event of re-initialization of a C extension.