Daniel Urban <urban.dani...@gmail.com> added the comment: According to PEP 7 [1], all declarations must be at the top of a block. So you probably should move the "char *mod_name_str" and "PyModuleObject *module" declarations to the beginning of the function's body.
[1] http://www.python.org/dev/peps/pep-0007/ ---------- nosy: +durban _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8297> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com