mirror of
https://github.com/kennethreitz/dive-into-python3.git
synced 2026-06-05 23:10:17 +00:00
typography fiddling
This commit is contained in:
@@ -65,7 +65,7 @@ Acknowledgements & Inspirations
|
||||
|
||||
/* typography */
|
||||
|
||||
body, .w a {
|
||||
body, .w a, .inherit {
|
||||
font: medium/1.75 'Gill Sans', 'Gill Sans MT', Corbel, Helvetica, 'Nimbus Sans L', sans-serif;
|
||||
word-spacing: 0.1em;
|
||||
}
|
||||
|
||||
@@ -624,7 +624,7 @@ class FieldStorage:
|
||||
<td>truncate <code>x</code> to nearest integer toward 0
|
||||
<td><code class=pp>math.trunc(x)</code>
|
||||
<td><a href=http://docs.python.org/3.1/library/math.html#math.trunc><code>x.<dfn>__trunc__</dfn>()</code></a>
|
||||
<tr><th><a href=http://www.python.org/dev/peps/pep-0357/>PEP 357</a>
|
||||
<tr><th><span class=inherit><a href=http://www.python.org/dev/peps/pep-0357/>PEP 357</a></span>
|
||||
<td>number as a list index
|
||||
<td><code class=pp>a_list[<var>x</var>]</code>
|
||||
<td><a href=http://www.python.org/doc/3.1/reference/datamodel.html#object.__index__><code>a_list[x.<dfn>__index__</dfn>()]</code></a>
|
||||
|
||||
Reference in New Issue
Block a user