2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-19 16:32:16 +00:00

merging current boost/python and libs/python from trunk into release branch

[SVN r72277]
This commit is contained in:
Ralf W. Grosse-Kunstleve
2011-05-30 05:51:49 +00:00
parent a5e564be83
commit faf3cd0b78
3 changed files with 6 additions and 2 deletions

View File

@@ -124,7 +124,7 @@
<p>
</p>
<pre class="programlisting"><span class="special">&gt;&gt;&gt;</span> <span class="keyword">import</span> <span class="identifier">hello_ext</span>
<span class="special">&gt;&gt;&gt;</span> <span class="keyword">print</span> <span class="identifier">hello</span><span class="special">.</span><span class="identifier">greet</span><span class="special">()</span>
<span class="special">&gt;&gt;&gt;</span> <span class="keyword">print</span> <span class="identifier">hello_ext</span><span class="special">.</span><span class="identifier">greet</span><span class="special">()</span>
<span class="identifier">hello</span><span class="special">,</span> <span class="identifier">world</span>
</pre>
<p>

View File

@@ -62,7 +62,7 @@ resulting DLL is now visible to Python. Here's a sample Python session:
[python]
>>> import hello_ext
>>> print hello.greet()
>>> print hello_ext.greet()
hello, world
[c++]

View File

@@ -3,11 +3,15 @@
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
import python ;
import os ;
lib socket ;
use-project /boost/python : ../build ;
project /boost/python/test
: requirements
<toolset>gcc:<cxxflags>-Wextra
<target-os>qnxnto:<library>socket
;
local PY = ;