Skip to content

Commit 7e2a6f3

Browse files
committed
fixed unorderable types section
1 parent 6a512b8 commit 7e2a6f3

2 files changed

Lines changed: 59 additions & 5 deletions

File tree

tutorials/key_differences_between_python_2_and_3.html

Lines changed: 45 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1681,7 +1681,7 @@
16811681
<div class="inner_cell">
16821682
<div class="text_cell_render border-box-sizing rendered_html">
16831683
<p><a href="http://sebastianraschka.com">Sebastian Raschka</a></p>
1684-
<p>last updated 05/24/2014</p>
1684+
<p>last updated 05/27/2014</p>
16851685
<ul>
16861686
<li><p><a href="http://nbviewer.ipython.org/github/rasbt/python_reference/blob/master/tutorials/key_differences_between_python_2_and_3.ipynb?create=1">Open in IPython nbviewer</a></p></li>
16871687
<li><p><a href="https://github.com/rasbt/python_reference/blob/master/tutorials/key_differences_between_python_2_and_3.ipynb">Link to this IPython notebook on Github</a></p></li>
@@ -3793,7 +3793,7 @@ <h4 id="python-2">Python 2</h4>
37933793
<div class="cell border-box-sizing code_cell rendered">
37943794
<div class="input">
37953795
<div class="prompt input_prompt">
3796-
In&nbsp;[]:
3796+
In&nbsp;[2]:
37973797
</div>
37983798
<div class="inner_cell">
37993799
<div class="input_area">
@@ -3807,6 +3807,25 @@ <h4 id="python-2">Python 2</h4>
38073807
</div>
38083808
</div>
38093809

3810+
<div class="output_wrapper">
3811+
<div class="output">
3812+
3813+
3814+
<div class="output_area"><div class="prompt"></div>
3815+
<div class="output_subarea output_stream output_stdout output_text">
3816+
<pre>
3817+
Python 2.7.6
3818+
[1, 2] &gt; &apos;foo&apos; = False
3819+
(1, 2) &gt; &apos;foo&apos; = True
3820+
[1, 2] &gt; (1, 2) = False
3821+
3822+
</pre>
3823+
</div>
3824+
</div>
3825+
3826+
</div>
3827+
</div>
3828+
38103829
</div>
38113830
<div class="cell border-box-sizing text_cell rendered">
38123831
<div class="prompt input_prompt">
@@ -4183,16 +4202,39 @@ <h2 id="More-articles-about-Python-2-and-Python-3">More articles about Python 2
41834202
</div>
41844203
<div class="inner_cell">
41854204
<div class="text_cell_render border-box-sizing rendered_html">
4186-
<p>Here is a list of some good articles concerning Python 2 and 3 that I would recommend as a follow-up:</p>
4205+
<p>Here is a list of some good articles concerning Python 2 and 3 that I would recommend as a follow-up.</p>
4206+
<p><strong>// Porting to Python 3</strong></p>
41874207
<ul>
41884208
<li><p><a href="https://wiki.python.org/moin/Python2orPython3">Should I use Python 2 or Python 3 for my development activity?</a></p></li>
41894209
<li><p><a href="https://docs.python.org/3.0/whatsnew/3.0.html">What’s New In Python 3.0</a></p></li>
41904210
<li><p><a href="http://python3porting.com/differences.html">Porting to Python 3</a></p></li>
41914211
<li><p><a href="https://docs.python.org/3/howto/pyporting.html">Porting Python 2 Code to Python 3</a></p></li>
41924212
<li><p><a href="http://nothingbutsnark.svbtle.com/my-view-on-the-current-state-of-python-3">How keep Python 3 moving forward</a></p></li>
41934213
</ul>
4214+
<p><strong>// Pro and anti Python 3</strong></p>
4215+
<ul>
4216+
<li><p><a href="http://lucumr.pocoo.org/2014/5/12/everything-about-unicode/">Everything you did not want to know about Unicode in Python 3</a></p></li>
4217+
<li><p><a href="https://medium.com/@deliciousrobots/5d2ad703365d/">Python 3 is killing Python</a></p></li>
4218+
<li><p><a href="https://medium.com/p/2a7af4788b10">Python 3 can revive Python</a></p></li>
4219+
<li><p><a href="http://sealedabstract.com/rants/python-3-is-fine/">Python 3 is fine</a></p></li>
4220+
</ul>
4221+
</div>
4222+
</div>
41944223
</div>
4224+
<div class="cell border-box-sizing code_cell rendered">
4225+
<div class="input">
4226+
<div class="prompt input_prompt">
4227+
In&nbsp;[]:
41954228
</div>
4229+
<div class="inner_cell">
4230+
<div class="input_area">
4231+
<div class="highlight"><pre>
4232+
</pre></div>
4233+
4234+
</div>
4235+
</div>
4236+
</div>
4237+
41964238
</div>
41974239
</div>
41984240
</div>

tutorials/key_differences_between_python_2_and_3.ipynb

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"metadata": {
33
"name": "",
4-
"signature": "sha256:ad53a8e56dd6c7cd1c379333f92a5232a0403e9f4efbad8a765d42d71ebecc0f"
4+
"signature": "sha256:c21b89c5879797a1dd3fbd08797ca9ad15665dfb0cec3fca1ccf94bd601354b2"
55
},
66
"nbformat": 3,
77
"nbformat_minor": 0,
@@ -1568,7 +1568,19 @@
15681568
],
15691569
"language": "python",
15701570
"metadata": {},
1571-
"outputs": []
1571+
"outputs": [
1572+
{
1573+
"output_type": "stream",
1574+
"stream": "stdout",
1575+
"text": [
1576+
"Python 2.7.6\n",
1577+
"[1, 2] > 'foo' = False\n",
1578+
"(1, 2) > 'foo' = True\n",
1579+
"[1, 2] > (1, 2) = False\n"
1580+
]
1581+
}
1582+
],
1583+
"prompt_number": 2
15721584
},
15731585
{
15741586
"cell_type": "markdown",

0 commit comments

Comments
 (0)