Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
7812454c
Commit
7812454c
authored
Sep 29, 2002
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a comment explaining that sharing a pickler is not thread-safe.
No jokes about sharing pickles please. :-)
parent
3112ac9a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/ZEO/zrpc/marshal.py
src/ZEO/zrpc/marshal.py
+1
-0
No files found.
src/ZEO/zrpc/marshal.py
View file @
7812454c
...
@@ -25,6 +25,7 @@ class Marshaller:
...
@@ -25,6 +25,7 @@ class Marshaller:
def
encode
(
self
,
msgid
,
flags
,
name
,
args
):
def
encode
(
self
,
msgid
,
flags
,
name
,
args
):
"""Returns an encoded message"""
"""Returns an encoded message"""
# (We used to have a global pickler, but that's not thread-safe. :-( )
pickler
=
cPickle
.
Pickler
()
pickler
=
cPickle
.
Pickler
()
pickler
.
fast
=
1
pickler
.
fast
=
1
return
pickler
.
dump
((
msgid
,
flags
,
name
,
args
),
1
)
return
pickler
.
dump
((
msgid
,
flags
,
name
,
args
),
1
)
...
...
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