Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
1c4ad726
Commit
1c4ad726
authored
Jan 03, 1997
by
chris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
5d6cef3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
24 deletions
+22
-24
lib/Components/cPickle/pickle.py
lib/Components/cPickle/pickle.py
+22
-24
No files found.
lib/Components/cPickle/pickle.py
View file @
1c4ad726
# $Id: pickle.py,v 1.
2 1997/01/02 22:22:19
chris Exp $
# $Id: pickle.py,v 1.
3 1997/01/03 16:23:02
chris Exp $
#
# Copyright
#
...
...
@@ -756,33 +756,31 @@ class C:
def
test
():
fn
=
'out'
# c = C()
# c.foo = 1
# c.bar = 2
# c2 = C()
# x = [0, 1, 2, 3]
# y = ('abc', 'abc', c, c)
# x.append(y)
# x.append(y)
# x.append(5)
# x.append(c2)
# f = open(fn, 'w')
# F = Pickler(f)
# F.dump(x)
# f.close()
# del F
c
=
C
()
c
.
foo
=
1
c
.
bar
=
2
c2
=
C
()
x
=
[
0
,
1
,
2
,
3
]
y
=
(
'abc'
,
'abc'
,
c
,
c
)
x
.
append
(
y
)
x
.
append
(
y
)
x
.
append
(
5
)
x
.
append
(
c2
)
f
=
open
(
fn
,
'w'
)
F
=
Pickler
(
f
)
F
.
dump
(
x
)
f
.
close
()
f
=
open
(
fn
,
'r'
)
U
=
Unpickler
(
f
)
x2
=
U
.
load
()
#
print x
#
print x2
#
print x == x2
#
print map(id, x)
#
print map(id, x2)
#
print F.memo
print
x
print
x2
print
x
==
x2
print
map
(
id
,
x
)
print
map
(
id
,
x2
)
print
F
.
memo
print
U
.
memo
# return x, x2, F, U
if
__name__
==
'__main__'
:
test
()
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