You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: serializing.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -72,7 +72,7 @@ <h2 id=dump>Saving Data to a Pickle File</h2>
72
72
<ol>
73
73
<li>Follow along in Python Shell #1.
74
74
<li>The idea here is to build a Python dictionary that could represent something useful, like an <ahref=xml.html#xml-structure>entry in an Atom feed</a>. But I also want to ensure that it contains several different types of data, to show off the <code>pickle</code> module. Don’t read too much into these values.
75
-
<li>The <code>time</code> module contains a data structure (<code>time_struct</code>) to represent a point in time (accurate to one millisecond) and functions to manipulate time structs. The <code>strptime()</code> function takes a formatted string an converts it to a <code>time_struct</code>. This string is in the default format, but you can control that with format codes. See the <ahref=http://docs.python.org/3.1/library/time.html><code>time</code> module</a> for more details.
75
+
<li>The <code>time</code> module contains a data structure (<code>struct_time</code>) to represent a point in time (accurate to one millisecond) and functions to manipulate time structs. The <code>strptime()</code> function takes a formatted string an converts it to a <code>struct_time</code>. This string is in the default format, but you can control that with format codes. See the <ahref=http://docs.python.org/3.1/library/time.html><code>time</code> module</a> for more details.
76
76
</ol>
77
77
78
78
<p>That’s a handsome-looking Python dictionary. Let’s save it to a file.
0 commit comments