]> granicus.if.org Git - python/commit
Change the example code to prefer PyModule_Add*() instead of using the
authorFred Drake <fdrake@acm.org>
Tue, 12 Mar 2002 21:49:44 +0000 (21:49 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 12 Mar 2002 21:49:44 +0000 (21:49 +0000)
commit1de5a722d67558d975082789f36156bd5ad5bb88
tree8484f416f8ec6ecbcd4ddd969c1f4c0de077439f
parent193a3f6d37c1440b049f7b1c62ff30c1d8cae38a
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.
Modules/xxmodule.c
Modules/xxsubtype.c