diff options
| author | Jack Jansen <jack.jansen@cwi.nl> | 1995-05-16 13:43:09 +0000 |
|---|---|---|
| committer | Jack Jansen <jack.jansen@cwi.nl> | 1995-05-16 13:43:09 +0000 |
| commit | 52e02998ef9d0c5643cf037f2db3cc5cf7c8c451 (patch) | |
| tree | 2dff28c1536a0f13d3c7b705671246d7a59bd36d /Tools/modulator/EXAMPLE.py | |
| parent | 7a1f6f4f2af359dc8cc379435dfbe0a60aa9e885 (diff) | |
| download | cpython-git-52e02998ef9d0c5643cf037f2db3cc5cf7c8c451.tar.gz | |
Made the example slightly more complete
Diffstat (limited to 'Tools/modulator/EXAMPLE.py')
| -rw-r--r-- | Tools/modulator/EXAMPLE.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Tools/modulator/EXAMPLE.py b/Tools/modulator/EXAMPLE.py index 40436993db..d4b254ae8c 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() |
