From: Jack Jansen Date: Tue, 16 May 1995 13:43:09 +0000 (+0000) Subject: Made the example slightly more complete X-Git-Tag: v1.3b1~309 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=52e02998ef9d0c5643cf037f2db3cc5cf7c8c451;p=thirdparty%2FPython%2Fcpython.git Made the example slightly more complete --- diff --git a/Tools/modulator/EXAMPLE.py b/Tools/modulator/EXAMPLE.py index 40436993db29..d4b254ae8cd2 100644 --- a/Tools/modulator/EXAMPLE.py +++ b/Tools/modulator/EXAMPLE.py @@ -3,6 +3,9 @@ # # You may also have to strip some imports out of modulator to make # it work. + +import genmodule + # # Generate code for a simple object with a method called sample @@ -44,3 +47,7 @@ m.name = 'sample' m.abbrev = 'sample' m.methodlist = ['newsimple', 'newnumberish', 'newott'] m.objects = [o, o2, o3] + +fp = open('EXAMPLEmodule.c', 'w') +genmodule.write(fp, m) +fp.close()