Python tutorial fixes supplied by Larry Brigman

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4970 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2003-07-31 21:11:59 +00:00
commit ad7cd027c0

View file

@ -289,7 +289,7 @@ Now, compiling (Python):
<pre>
$ swig -python -c++ pair.i
$ c++ -c pair_wrap.c -I/usr/local/include/python2.1
$ c++ -shared pair_wrap.o -o paircmodule.so
$ c++ -shared pair_wrap.o -o _pair.so
$ python
Python 2.1 (#3, Aug 20 2001, 15:41:42)
[GCC 2.95.2 19991024 (release)] on sunos5
@ -303,7 +303,7 @@ Type "copyright", "credits" or "license" for more information.
>>> a.second = 16
>>> a.second
16
>>> b = pair.pairdd(3.5,8)
>>> b = pair.pairdi(3.5,8)
>>> b.first
3.5
>>> b.second