<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><span></span></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div style="-webkit-text-size-adjust: auto; ">Hi all,</div><div style="-webkit-text-size-adjust: auto; "><br></div><div style="-webkit-text-size-adjust: auto; ">I found the following typo error inside the ip_address module introduction (<span style="font-size: 15px; line-height: 19px; white-space: nowrap; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); -webkit-text-size-adjust: none; "><a href="http://docs.python.org/dev/howto/ipaddress.html">http://docs.python.org/dev/howto/ipaddress.html</a>).</span></div><div style="-webkit-text-size-adjust: auto; "><br></div><div style="-webkit-text-size-adjust: auto; "><br></div><div style="-webkit-text-size-adjust: auto; ">Inside the Host Interfaces section there is the following example:</div><div style="-webkit-text-size-adjust: auto; "><br></div><div><div class="highlight-python3" style="position: relative; "><div class="highlight"><span class="copybutton" title="Hide the prompts and output" style="cursor: pointer; position: absolute; top: 0px; right: 0px; border: 1px solid rgb(170, 204, 153); padding-left: 0.2em; padding-right: 0.2em; border-top-left-radius: 0px; border-top-right-radius: 3px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; "><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">>>></span></span><pre style="overflow-x: auto; overflow-y: hidden; padding: 5px; border: 1px solid rgb(170, 204, 153); border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; "><font face="Helvetica"><span style="white-space: normal; -webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"><span class="gp" style="font-weight: bold; ">>>> </span><span class="n">ipaddress</span><span class="o">.</span><span class="n">ip_interface</span><span class="p">(</span><span class="s">'192.0.2.1/24'</span><span class="p">)</span>
<span class="go">IPv4Interface('192.0.2.1/24')</span>
<span class="gp" style="font-weight: bold; ">>>> </span><span class="n">ipaddress</span><span class="o">.</span><span class="n">ip_network</span><span class="p">(</span><span class="s">'2001:db8::1/96'</span><span class="p">)</span>
<span class="go">IPv6Interface('2001:db8::1/96')</span></span></font></pre></div></div><div>the second statement should call the ip_interface method instead of the ip_network one.</div><div><br></div><div>Otherwise, this tutorial is very well written!  Thanks!</div><div><br></div><div>Regards,</div><div><br></div><span style="-webkit-text-size-adjust: auto;">... Pierre Rouleau</span></div></div></body></html>