"SfR Fresh" - the SfR Freeware/Shareware Archive 
Member "gle-3.1.0/swig/README" of archive gle-3.1.0.tar.gz:
As a special service "SfR Fresh" has tried to format the requested source page into HTML format using source code syntax highlighting with prefixed line numbers.
Alternatively you can here view or download the uninterpreted source code file.
That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.
1
2 There are two (different) sets of Python wrappers for GLE. One
3 set is included in this directory. Another set comes by default
4 with the OpenGL Python wrappers at http://pyopengl.sourceforge.net/
5 Neither set should be considered more 'official' or 'standard'
6 than the other: use the one that is most convenient for you.
7
8
9
10 Python and SWIG
11 ---------------
12 The Simple Wrapper Generator (SWIG) can be used to create python
13 bindings for gle functions. Normally, a small definition file,
14 run through swig, is enough.
15
16 This directory contains the definition and autogenerated code
17 for a special, non-generally available version of SWIG. It
18 should work; however, it is unmaintainable. If you are willing to
19 maintain this code, let me (linas@linas.org) know.
20
21 See email below:
22
23 > From: "Michel Sanner" <sanner@scripps.edu>
24 > To: linas@linas.org
25 > Subject: resending -- Re: Gle wrapper source]
26 >
27 > Hi Linas,
28 >
29 > In fact I used a "special" version of SWIG (1.2a1) which David Baisley gave me
30 > a few yars ago when I was working on typemaps for Numeric arrays. This version
31 > provides pre-processing capabilities which are necessary for the typemaps I
32 > used in gle.i. Unfortunately, these capabilities never made it into SWIG (at
33 > least not up to now) and therefore noone out there would have a SWIG capable of
34 > generating the wrapper code from that interface.
35 >
36 > The pre-processing capabilities are used to generate dimension arguments from
37 > the shape of numeric arrays. Using this, a function with 2 arguments (int
38 > nbPts, float *coords) can be called from Python by passing only a numeric
39 > array. the nbPts arguments will be generated automatically from the the numeric
40 > array's shape.
41 >
42 > The interface could be made to work for the publicly available version of SWIG
43 > by replacing these typemaps by simple ones (i.e. not generating arguments) in
44 > which case the function mentioned aboved would have to be called with 2
45 > arguments in Python ( foo( my_array.shape[0], my_array) ).
46 >
47 >
48 > -Michel
49 >