mirror of
https://github.com/kennethreitz/dive-into-python3.git
synced 2026-06-05 15:00:18 +00:00
3.0 --> 3.1
This commit is contained in:
+4
-4
@@ -216,7 +216,7 @@ def approximate_size(size, a_kilobyte_is_1024_bytes=True):
|
||||
<samp class=p>>>> </samp><kbd class=pp>'{0:.1f} {1}'.format(698.24, 'GB')</kbd>
|
||||
<samp class=pp>'698.2 GB'</samp></pre>
|
||||
|
||||
<p>For all the gory details on format specifiers, consult the <a href=http://docs.python.org/3.0/library/string.html#format-specification-mini-language>Format Specification Mini-Language</a> in the official Python documentation.
|
||||
<p>For all the gory details on format specifiers, consult the <a href=http://docs.python.org/3.1/library/string.html#format-specification-mini-language>Format Specification Mini-Language</a> in the official Python documentation.
|
||||
|
||||
<p class=a>⁂
|
||||
|
||||
@@ -451,9 +451,9 @@ TypeError: Can't convert 'bytes' object to str implicitly</samp>
|
||||
<p>On strings and string formatting:
|
||||
|
||||
<ul>
|
||||
<li><a href=http://docs.python.org/3.0/library/string.html><code>string</code> — Common string operations</a>
|
||||
<li><a href=http://docs.python.org/3.0/library/string.html#formatstrings>Format String Syntax</a>
|
||||
<li><a href=http://docs.python.org/3.0/library/string.html#format-specification-mini-language>Format Specification Mini-Language</a>
|
||||
<li><a href=http://docs.python.org/3.1/library/string.html><code>string</code> — Common string operations</a>
|
||||
<li><a href=http://docs.python.org/3.1/library/string.html#formatstrings>Format String Syntax</a>
|
||||
<li><a href=http://docs.python.org/3.1/library/string.html#format-specification-mini-language>Format Specification Mini-Language</a>
|
||||
<li><a href=http://www.python.org/dev/peps/pep-3101/><abbr>PEP</abbr> 3101: Advanced String Formatting</a>
|
||||
</ul>
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ body{counter-reset:h1 18}
|
||||
<li><a href=http://users.rcn.com/python/download/Descriptor.htm>How-To Guide For Descriptors</a>
|
||||
<li><a href=http://www.ibm.com/developerworks/linux/library/l-python-elegance-2.html>Charming Python: Python elegance and warts, Part 2</a>
|
||||
<li><a href='http://www.informit.com/articles/printerfriendly.aspx?p=1309289'>Python Descriptors</a>
|
||||
<li><a href=http://docs.python.org/3.0/reference/datamodel.html#invoking-descriptors>Invoking Descriptors</a> in the official Python documentation
|
||||
<li><a href=http://docs.python.org/3.1/reference/datamodel.html#invoking-descriptors>Invoking Descriptors</a> in the official Python documentation
|
||||
</ul>
|
||||
|
||||
<p>Metaclasses:
|
||||
|
||||
@@ -659,7 +659,7 @@ lxml.etree.XMLSyntaxError: Entity 'hellip' not defined, line 3, column 28</samp>
|
||||
|
||||
<ul>
|
||||
<li><a href=http://en.wikipedia.org/wiki/XML><abbr>XML</abbr> on Wikipedia.org</a>
|
||||
<li><a href=http://docs.python.org/3.0/library/xml.etree.elementtree.html>The ElementTree <abbr>XML</abbr> API</a>
|
||||
<li><a href=http://docs.python.org/3.1/library/xml.etree.elementtree.html>The ElementTree <abbr>XML</abbr> API</a>
|
||||
<li><a href=http://effbot.org/zone/element.htm>Elements and Element Trees</a>
|
||||
<li><a href=http://effbot.org/zone/element-xpath.htm>XPath Support in ElementTree</a>
|
||||
<li><a href=http://effbot.org/zone/element-iterparse.htm>The ElementTree iterparse Function</a>
|
||||
|
||||
Reference in New Issue
Block a user