Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
67920146
Commit
67920146
authored
Feb 05, 2003
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Typo repair.
parent
3e667d54
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Modules/cPickle.c
Modules/cPickle.c
+4
-4
No files found.
Modules/cPickle.c
View file @
67920146
...
...
@@ -1480,7 +1480,7 @@ save_unicode(Picklerobject *self, PyObject *args, int doput)
/* A helper for save_tuple. Push the len elements in tuple t on the stack. */
static
int
store_tuple_eleme
m
ts
(
Picklerobject
*
self
,
PyObject
*
t
,
int
len
)
store_tuple_eleme
n
ts
(
Picklerobject
*
self
,
PyObject
*
t
,
int
len
)
{
int
i
;
int
res
=
-
1
;
/* guilty until proved innocent */
...
...
@@ -1503,7 +1503,7 @@ store_tuple_elememts(Picklerobject *self, PyObject *t, int len)
/* Tuples are ubiquitous in the pickle protocols, so many techniques are
* used across protocols to minimize the space needed to pickle them.
* Tuples are also the only builtin immu
a
table type that can be recursive
* Tuples are also the only builtin immutable type that can be recursive
* (a tuple can be reached from itself), and that requires some subtle
* magic so that it works in all cases. IOW, this is a long routine.
*/
...
...
@@ -1553,7 +1553,7 @@ save_tuple(Picklerobject *self, PyObject *args)
if
(
len
<=
3
&&
self
->
proto
>=
2
)
{
/* Use TUPLE{1,2,3} opcodes. */
if
(
store_tuple_eleme
m
ts
(
self
,
args
,
len
)
<
0
)
if
(
store_tuple_eleme
n
ts
(
self
,
args
,
len
)
<
0
)
goto
finally
;
if
(
PyDict_GetItem
(
self
->
memo
,
py_tuple_id
))
{
/* pop the len elements */
...
...
@@ -1578,7 +1578,7 @@ save_tuple(Picklerobject *self, PyObject *args)
if
(
self
->
write_func
(
self
,
&
MARKv
,
1
)
<
0
)
goto
finally
;
if
(
store_tuple_eleme
m
ts
(
self
,
args
,
len
)
<
0
)
if
(
store_tuple_eleme
n
ts
(
self
,
args
,
len
)
<
0
)
goto
finally
;
if
(
PyDict_GetItem
(
self
->
memo
,
py_tuple_id
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment