mirror of
https://github.com/kennethreitz/dive-into-python3.git
synced 2026-06-05 15:00:18 +00:00
fix navigation, update TOC, fix a few xrefs, stub out serializing chapter
This commit is contained in:
@@ -633,11 +633,10 @@ NameError: name '__import__' is not defined</samp></pre>
|
|||||||
<li><a href=http://www.tkcs-collins.com/truman/alphamet/index.shtml>Alphametics Index</a>, including <a href=http://www.tkcs-collins.com/truman/alphamet/alphamet.shtml>lots of puzzles</a> and <a href=http://www.tkcs-collins.com/truman/alphamet/alpha_gen.shtml>a generator to make your own</a>
|
<li><a href=http://www.tkcs-collins.com/truman/alphamet/index.shtml>Alphametics Index</a>, including <a href=http://www.tkcs-collins.com/truman/alphamet/alphamet.shtml>lots of puzzles</a> and <a href=http://www.tkcs-collins.com/truman/alphamet/alpha_gen.shtml>a generator to make your own</a>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p>Many, many thanks to Raymond Hettinger for agreeing to relicense his code so I could port it to Python 3 and use it as the basis for this chapter.
|
<p>Many thanks to Raymond Hettinger for agreeing to relicense his code so I could port it to Python 3 and use it as the basis for this chapter.
|
||||||
|
|
||||||
<p class=v><a href=iterators.html rel=prev title='back to “Classes & Iterators”'><span class=u>☜</span></a> <a href=unit-testing.html rel=next title='onward to “Unit Testing”'><span class=u>☞</span></a>
|
<p class=v><a href=iterators.html rel=prev title='back to “Classes & Iterators”'><span class=u>☜</span></a> <a href=unit-testing.html rel=next title='onward to “Unit Testing”'><span class=u>☞</span></a>
|
||||||
|
|
||||||
<p class=v><a rel=prev class=todo><span class=u>☜</span></a> <a rel=next class=todo><span class=u>☞</span></a>
|
|
||||||
<p class=c>© 2001–9 <a href=about.html>Mark Pilgrim</a>
|
<p class=c>© 2001–9 <a href=about.html>Mark Pilgrim</a>
|
||||||
<script src=j/jquery.js></script>
|
<script src=j/jquery.js></script>
|
||||||
<script src=j/prettify.js></script>
|
<script src=j/prettify.js></script>
|
||||||
|
|||||||
+2
-2
@@ -2,7 +2,7 @@
|
|||||||
* Your First Python Program
|
* Your First Python Program
|
||||||
** TODO mention why from module import * is only allowed at module level
|
** TODO mention why from module import * is only allowed at module level
|
||||||
* Native Datatypes
|
* Native Datatypes
|
||||||
* TODO Comprehensions
|
* DONE Comprehensions
|
||||||
** List comprehensions
|
** List comprehensions
|
||||||
** Set comprehensions
|
** Set comprehensions
|
||||||
** Dictionary comprehensions
|
** Dictionary comprehensions
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
* TODO 2nd draft Porting Code to Python 3 with 2to3
|
* TODO 2nd draft Porting Code to Python 3 with 2to3
|
||||||
* TODO 2nd draft Special Method Names
|
* TODO 2nd draft Special Method Names
|
||||||
* Bits to add somewhere
|
* Bits to add somewhere
|
||||||
** TODO section on tuples
|
** DONE section on tuples
|
||||||
** TODO section on dictionary views
|
** TODO section on dictionary views
|
||||||
several dictionary methods return them
|
several dictionary methods return them
|
||||||
they're dynamic
|
they're dynamic
|
||||||
|
|||||||
+1
-1
@@ -39,7 +39,7 @@ h1:before{content:''}
|
|||||||
<li><a href=refactoring.html>Refactoring</a>
|
<li><a href=refactoring.html>Refactoring</a>
|
||||||
<li><a href=files.html>Files</a>
|
<li><a href=files.html>Files</a>
|
||||||
<li><a href=xml.html>XML</a>
|
<li><a href=xml.html>XML</a>
|
||||||
<li class=todo>Serializing Python Objects
|
<li><a href=serializing.html>Serializing Python Objects</a>
|
||||||
<li><a href=http-web-services.html>HTTP Web Services</a>
|
<li><a href=http-web-services.html>HTTP Web Services</a>
|
||||||
<li class=todo>Threading <i class=baa>&</i> Multiprocessing
|
<li class=todo>Threading <i class=baa>&</i> Multiprocessing
|
||||||
<li class=todo>Packaging Python libraries
|
<li class=todo>Packaging Python libraries
|
||||||
|
|||||||
+1
-1
@@ -471,7 +471,7 @@ OK</samp></pre>
|
|||||||
<li>Refactoring mercilessly to improve performance, scalability, readability, maintainability, or whatever other -ility you’re lacking
|
<li>Refactoring mercilessly to improve performance, scalability, readability, maintainability, or whatever other -ility you’re lacking
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p class=v><a rel=prev class=todo><span class=u>☜</span></a> <a href=files.html rel=next title='onward to “Files”'><span class=u>☞</span></a>
|
<p class=v><a rel=prev href=unit-testing.html title='back to “Unit Testing”'><span class=u>☜</span></a> <a href=files.html rel=next title='onward to “Files”'><span class=u>☞</span></a>
|
||||||
<p class=c>© 2001–9 <a href=about.html>Mark Pilgrim</a>
|
<p class=c>© 2001–9 <a href=about.html>Mark Pilgrim</a>
|
||||||
<script src=j/jquery.js></script>
|
<script src=j/jquery.js></script>
|
||||||
<script src=j/prettify.js></script>
|
<script src=j/prettify.js></script>
|
||||||
|
|||||||
@@ -0,0 +1,37 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<head>
|
||||||
|
<meta charset=utf-8>
|
||||||
|
<title>Serializing Python Objects - Dive into Python 3</title>
|
||||||
|
<!--[if IE]><script src=j/html5.js></script><![endif]-->
|
||||||
|
<link rel=stylesheet href=dip3.css>
|
||||||
|
<style>
|
||||||
|
body{counter-reset:h1 13}
|
||||||
|
</style>
|
||||||
|
<link rel=stylesheet media='only screen and (max-device-width: 480px)' href=mobile.css>
|
||||||
|
<link rel=stylesheet media=print href=print.css>
|
||||||
|
<meta name=viewport content='initial-scale=1.0'>
|
||||||
|
</head>
|
||||||
|
<form action=http://www.google.com/cse><div><input type=hidden name=cx value=014021643941856155761:l5eihuescdw><input type=hidden name=ie value=UTF-8> <input name=q size=25> <input type=submit name=root value=Search></div></form>
|
||||||
|
<p>You are here: <a href=index.html>Home</a> <span class=u>‣</span> <a href=table-of-contents.html#serializing>Dive Into Python 3</a> <span class=u>‣</span>
|
||||||
|
<p id=level>Difficulty level: <span class=u title=advanced>♦♦♦♦♢</span>
|
||||||
|
<h1>Serializing Python Objects</h1>
|
||||||
|
<blockquote class=q>
|
||||||
|
<p><span class=u>❝</span> FIXME <span class=u>❞</span><br>— FIXME
|
||||||
|
</blockquote>
|
||||||
|
<p id=toc>
|
||||||
|
<h2 id=divingin>Diving In</h2>
|
||||||
|
<p class=f>FIXME
|
||||||
|
|
||||||
|
<p class=a>⁂
|
||||||
|
|
||||||
|
<h2 id=furtherreading>Further Reading</h2>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>FIXME
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p class=v><a rel=prev href=xml.html title='back to “XML”'><span class=u>☜</span></a> <a rel=next href=http-web-services.html title='onward to “HTTP Web Services”'><span class=u>☞</span></a>
|
||||||
|
<p class=c>© 2001–9 <a href=about.html>Mark Pilgrim</a>
|
||||||
|
<script src=j/jquery.js></script>
|
||||||
|
<script src=j/prettify.js></script>
|
||||||
|
<script src=j/dip3.js></script>
|
||||||
@@ -247,7 +247,10 @@ ul li ol{margin:0;padding:0 0 0 2.5em}
|
|||||||
<li><a href=xml.html#xml-generate>Generating XML</a>
|
<li><a href=xml.html#xml-generate>Generating XML</a>
|
||||||
<li><a href=xml.html#furtherreading>Further Reading</a>
|
<li><a href=xml.html#furtherreading>Further Reading</a>
|
||||||
</ol>
|
</ol>
|
||||||
<li>Serializing Python Objects
|
<li id=serializing><a href=serializing.html>Serializing Python Objects</a>
|
||||||
|
<ol>
|
||||||
|
<li>...diving in...
|
||||||
|
</ol>
|
||||||
<li id=http-web-services><a href=http-web-services.html>HTTP Web Services</a>
|
<li id=http-web-services><a href=http-web-services.html>HTTP Web Services</a>
|
||||||
<ol>
|
<ol>
|
||||||
<li><a href=http-web-services.html#divingin>Diving In</a>
|
<li><a href=http-web-services.html#divingin>Diving In</a>
|
||||||
|
|||||||
+1
-1
@@ -790,7 +790,7 @@ OK</samp></pre>
|
|||||||
|
|
||||||
<p>And the anticlimax award of the year goes to… the word “<code>OK</code>”, which is printed by the <code>unittest</code> module when all the tests pass.
|
<p>And the anticlimax award of the year goes to… the word “<code>OK</code>”, which is printed by the <code>unittest</code> module when all the tests pass.
|
||||||
|
|
||||||
<p class=v><a href=advanced-iterators.html rel=prev title='back to “Advanced Iterators”'><span class=u>☜</span></a> <a href=unit-testing.html rel=next title='onward to “Unit Testing”'><span class=u>☞</span></a>
|
<p class=v><a href=advanced-iterators.html rel=prev title='back to “Advanced Iterators”'><span class=u>☜</span></a> <a href=refactoring.html rel=next title='onward to “Refactoring”'><span class=u>☞</span></a>
|
||||||
<p class=c>© 2001–9 <a href=about.html>Mark Pilgrim</a>
|
<p class=c>© 2001–9 <a href=about.html>Mark Pilgrim</a>
|
||||||
<script src=j/jquery.js></script>
|
<script src=j/jquery.js></script>
|
||||||
<script src=j/prettify.js></script>
|
<script src=j/prettify.js></script>
|
||||||
|
|||||||
@@ -641,7 +641,7 @@ lxml.etree.XMLSyntaxError: Entity 'hellip' not defined, line 3, column 28</samp>
|
|||||||
<li><a href=http://github.com/galvez/xmlwitch/tree/master>xmlwitch</a> is another <abbr>XML</abbr> generation library
|
<li><a href=http://github.com/galvez/xmlwitch/tree/master>xmlwitch</a> is another <abbr>XML</abbr> generation library
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p class=v><a rel=prev title='back to “Files”'><span class=u>☜</span></a> <a rel=next class=todo><span class=u>☞</span></a>
|
<p class=v><a rel=prev href=files.html title='back to “Files”'><span class=u>☜</span></a> <a rel=next href=serializing.html title='onward to “Serializing Python Objects”'><span class=u>☞</span></a>
|
||||||
<p class=c>© 2001–9 <a href=about.html>Mark Pilgrim</a>
|
<p class=c>© 2001–9 <a href=about.html>Mark Pilgrim</a>
|
||||||
<script src=j/jquery.js></script>
|
<script src=j/jquery.js></script>
|
||||||
<script src=j/prettify.js></script>
|
<script src=j/prettify.js></script>
|
||||||
|
|||||||
@@ -349,7 +349,7 @@ if __name__ == '__main__':
|
|||||||
<li><a href=http://www.python.org/dev/peps/pep-0008/>PEP 8: Style Guide for Python Code</a> discusses good indentation style.
|
<li><a href=http://www.python.org/dev/peps/pep-0008/>PEP 8: Style Guide for Python Code</a> discusses good indentation style.
|
||||||
<li><a href=http://docs.python.org/3.0/reference/><cite>Python Reference Manual</cite></a> explains what it means to say that <a href=http://docs.python.org/3.0/reference/datamodel.html#objects-values-and-types>everything in Python is an object</a>, because some people are <a href=http://www.douglasadams.com/dna/pedants.html>pedants</a> and like to discuss that sort of thing at great length.
|
<li><a href=http://docs.python.org/3.0/reference/><cite>Python Reference Manual</cite></a> explains what it means to say that <a href=http://docs.python.org/3.0/reference/datamodel.html#objects-values-and-types>everything in Python is an object</a>, because some people are <a href=http://www.douglasadams.com/dna/pedants.html>pedants</a> and like to discuss that sort of thing at great length.
|
||||||
</ul>
|
</ul>
|
||||||
<p class=v><a rel=prev class=todo><span class=u>☜</span></a> <a rel=next href=native-datatypes.html title='onward to “Native Datatypes”'><span class=u>☞</span></a>
|
<p class=v><a rel=prev href=installing-python.html title='back to “Installing Python”'><span class=u>☜</span></a> <a rel=next href=native-datatypes.html title='onward to “Native Datatypes”'><span class=u>☞</span></a>
|
||||||
<p class=c>© 2001–9 <a href=about.html>Mark Pilgrim</a>
|
<p class=c>© 2001–9 <a href=about.html>Mark Pilgrim</a>
|
||||||
<script src=j/jquery.js></script>
|
<script src=j/jquery.js></script>
|
||||||
<script src=j/prettify.js></script>
|
<script src=j/prettify.js></script>
|
||||||
|
|||||||
Reference in New Issue
Block a user