commit | f2b2dac5eb84fbfb410e5066d24faa2f27423146 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Thu Jan 23 23:29:44 1997 +0000 |
committer | Guido van Rossum <guido@python.org> | Thu Jan 23 23:29:44 1997 +0000 |
tree | a8e4e5433d02481bf32cd2605f526c158ae13a07 | |
parent | ca756f2a1d8353812223af380166c826ffefcc2c [diff] |
Initialize the ob_type field of PyAST_Type dynamically (in initparser()) instead of statically (in the initializer). The static initialization, using the address of an object in a different DLL, is too much for the Microsoft VC++ compiler, and we want to be able to build this module as a separate DLL (it's nice to have but we don't want to increase the core DLL's size by 25K). This same trick has been applied to a number of modules, e.g. NumPy and _tkinter.