Skip to content

Commit e9c23b3

Browse files
author
Autobuild bot on Travis-CI
committed
update html
1 parent f040551 commit e9c23b3

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

library/socket.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,11 @@ <h2>18.1.1. ソケットファミリー<a class="headerlink" href="#socket-famil
192192
<li><p class="first">その他の特定のアドレスファミリー (<code class="xref py py-const docutils literal"><span class="pre">AF_PACKET</span></code>, <a class="reference internal" href="#socket.AF_CAN" title="socket.AF_CAN"><code class="xref py py-const docutils literal"><span class="pre">AF_CAN</span></code></a>) は、それぞれ固有の形式をサポートしています。</p>
193193
</li>
194194
</ul>
195-
<p>IPv4 アドレスでは、ホストアドレスの代わりに2つの特殊な形式を利用できます。 IPv4アドレスのホストアドレスが空文字列の場合、 <code class="xref py py-const docutils literal"><span class="pre">INADDR_ANY</span></code> として処理されます。また、 <code class="docutils literal"><span class="pre">'&lt;broadcast&gt;'</span></code> の場合は <code class="xref py py-const docutils literal"><span class="pre">INADDR_BROADCAST</span></code> として処理されます。 IPv6では後方互換性のためこの機能は用意されていませんので、IPv6をサポートするPythonプログラムでは利用しないで下さい。</p>
195+
<p>For IPv4 addresses, two special forms are accepted instead of a host address:
196+
the empty string represents <code class="xref py py-const docutils literal"><span class="pre">INADDR_ANY</span></code>, and the string
197+
<code class="docutils literal"><span class="pre">'&lt;broadcast&gt;'</span></code> represents <code class="xref py py-const docutils literal"><span class="pre">INADDR_BROADCAST</span></code>. This behavior is not
198+
compatible with IPv6, therefore, you may want to avoid these if you intend
199+
to support IPv6 with your Python programs.</p>
196200
<p>IPv4/v6ソケットの <em>host</em> 部にホスト名を指定すると、処理結果が一定ではない場合があります。これはPythonはDNSから取得したアドレスのうち最初のアドレスを使用するので、 DNSの処理やホストの設定によって異なるIPv4/6アドレスを取得する場合があるためです。常に同じ結果が必要であれば、 <em>host</em> に数値のアドレスを指定してください。</p>
197201
<p>全てのエラーは例外を発生させます。引数型のエラーやメモリ不足の場合には通常の例外が発生し、ソケットやアドレス関連のエラーは Python 3.3 からは <a class="reference internal" href="exceptions.html#OSError" title="OSError"><code class="xref py py-exc docutils literal"><span class="pre">OSError</span></code></a> かそのサブクラスを発生させます (Python 3.3 以前は <a class="reference internal" href="#socket.error" title="socket.error"><code class="xref py py-exc docutils literal"><span class="pre">socket.error</span></code></a> を発生させていました)。</p>
198202
<p><a class="reference internal" href="#socket.socket.setblocking" title="socket.socket.setblocking"><code class="xref py py-meth docutils literal"><span class="pre">setblocking()</span></code></a> メソッドで、非ブロッキングモードを使用することができます。また、より汎用的に <a class="reference internal" href="#socket.socket.settimeout" title="socket.socket.settimeout"><code class="xref py py-meth docutils literal"><span class="pre">settimeout()</span></code></a> メソッドでタイムアウトを指定する事ができます。</p>

library/stdtypes.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,9 @@ <h3>ナビゲーション</h3>
351351
<p>その他の数値演算は、 <a class="reference internal" href="math.html#module-math" title="math: Mathematical functions (sin() etc.)."><code class="xref py py-mod docutils literal"><span class="pre">math</span></code></a><a class="reference internal" href="cmath.html#module-cmath" title="cmath: Mathematical functions for complex numbers."><code class="xref py py-mod docutils literal"><span class="pre">cmath</span></code></a> モジュールをご覧ください。</p>
352352
<div class="section" id="bitwise-operations-on-integer-types">
353353
<span id="bitstring-ops"></span><h3>4.4.1. 整数型におけるビット単位演算<a class="headerlink" href="#bitwise-operations-on-integer-types" title="このヘッドラインへのパーマリンク"></a></h3>
354-
<p id="index-16">ビット単位演算は、整数に対してのみ意味があります。負の数は、その 2 の補数の値として扱われます (演算中にオーバフローが起こらないように十分なビット数があるものと仮定します) 。</p>
354+
<p id="index-16">Bitwise operations only make sense for integers. Negative numbers are treated
355+
as their 2’s complement value (this assumes that there are enough bits so that
356+
no overflow occurs during the operation).</p>
355357
<p>二項ビット単位演算の優先順位は全て、数値演算よりも低く、比較よりも高くなっています; 単項演算 <code class="docutils literal"><span class="pre">~</span></code> の優先順位は他の単項数値演算 (<code class="docutils literal"><span class="pre">+</span></code> および <code class="docutils literal"><span class="pre">-</span></code>) と同じです。</p>
356358
<p>以下の表では、ビット単位演算を優先順位が低い順に並べています:</p>
357359
<table border="1" class="docutils">

searchindex.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)