]> granicus.if.org Git - python/commit
Initialize the ob_type field of PyAST_Type dynamically (in
authorGuido van Rossum <guido@python.org>
Thu, 23 Jan 1997 23:29:44 +0000 (23:29 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 23 Jan 1997 23:29:44 +0000 (23:29 +0000)
commitf2b2dac5eb84fbfb410e5066d24faa2f27423146
treea8e4e5433d02481bf32cd2605f526c158ae13a07
parentca756f2a1d8353812223af380166c826ffefcc2c
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.
Modules/parsermodule.c