mirror of
https://github.com/kennethreitz/dive-into-python3.git
synced 2026-06-05 23:10:17 +00:00
markup fiddling
This commit is contained in:
@@ -1315,7 +1315,7 @@ except:
|
||||
|
||||
<h3 id=idioms>Common idioms (explicit)</h3>
|
||||
|
||||
<p>There were a number of common idioms built up in the Python community. Some, like the <code>while 1:</code> loop, date back to Python 1. (Python didn’t have a true boolean type until version 2.3, so developers used <code>1</code> and <code>0</code> instead.) Modern Python programmers should train their brains to use modern versions of these idioms instead.
|
||||
<p>There were a number of common idioms built up in the Python community. Some, like the <code>while 1:</code> loop, date back to Python 1. (Python didn’t have a true boolean type until version 2.3, so developers used <code>1</code> and 0 instead.) Modern Python programmers should train their brains to use modern versions of these idioms instead.
|
||||
|
||||
<blockquote class=note>
|
||||
<p><span class=u>☞</span>The <code>2to3</code> script will not fix common idioms by default. To enable this fix, specify <kbd>-f idioms</kbd> on the command line when you call <code>2to3</code>.
|
||||
|
||||
Reference in New Issue
Block a user