updated python binding docs

This commit is contained in:
Arvid Norberg 2008-03-10 06:30:34 +00:00
parent 5b75d4d1b8
commit 1f317900f4
2 changed files with 4 additions and 4 deletions

View File

@ -51,7 +51,7 @@ directory and invoke <tt class="docutils literal"><span class="pre">bjam</span><
build variants, see <a class="reference" href="building.html#step-3-building-libtorrent">libtorrent build options</a>.</p>
<p>For example:</p>
<pre class="literal-block">
$ bjam dht-support=on release link=static
$ bjam dht-support=on boost=source release link=static
</pre>
<p>On Mac OS X, this will produce the following python module:</p>
<pre class="literal-block">
@ -75,7 +75,7 @@ ses.listen_on(6881, 6891)
e = lt.bdecode(open(&quot;test.torrent&quot;, 'rb').read())
info = lt.torrent_info(e)
h = ses.add_torrent(info, &quot;./&quot;, compact_mode = True)
h = ses.add_torrent(info, &quot;./&quot;, storage_mode=storage_mode_sparse)
while (not h.is_seed()):
s = h.status()

View File

@ -43,7 +43,7 @@ build variants, see `libtorrent build options`_.
For example::
$ bjam dht-support=on release link=static
$ bjam dht-support=on boost=source release link=static
On Mac OS X, this will produce the following python module::
@ -71,7 +71,7 @@ A very simple example usage of the module would be something like this::
e = lt.bdecode(open("test.torrent", 'rb').read())
info = lt.torrent_info(e)
h = ses.add_torrent(info, "./", compact_mode = True)
h = ses.add_torrent(info, "./", storage_mode=storage_mode_sparse)
while (not h.is_seed()):
s = h.status()