<br><br>суббота, 13 июля 2013 г., 10:32:59 UTC+4 пользователь Vernon D. Cole написал:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div><div><div><div style="text-align:left"><div>This proposal is for only one thing -- to make the following happen:<br>
>>> inf = '\u221e'<br>>>> float(inf)<br>inf<br>>>> <br><br></div></div></div></div></div></blockquote><div>Exactly. But to be more complete:</div><div><br></div><div><font face="courier new, monospace">>> float(u'<span style="font-size: 18px;">∞</span>'), </font></div><div><font face="courier new, monospace">inf</font></div><div><div><font face="courier new, monospace">>> float(u'-<span style="font-size: 18px;">∞</span>')</font></div></div><div><div><font face="courier new, monospace">-inf</font></div><div><br></div><div>One could go further and make a string '∞' literal in python to refer to infinity. </div><div>But this can only speak if this proposal makes sense. <br></div><div></div></div>