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:
parent
2a858721b9
commit
ad7cd027c0
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue