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
658009af
Commit
658009af
authored
Sep 16, 2002
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make BadPickleGet a class. Fixes #609164.
parent
258cba84
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
Misc/NEWS
Misc/NEWS
+2
-0
Modules/cPickle.c
Modules/cPickle.c
+4
-3
No files found.
Misc/NEWS
View file @
658009af
...
@@ -274,6 +274,8 @@ Core and builtins
...
@@ -274,6 +274,8 @@ Core and builtins
Extension modules
Extension modules
- cPickle.BadPickleGet is now a class.
- The time stamps in os.stat_result are floating point numbers now.
- The time stamps in os.stat_result are floating point numbers now.
- If the size passed to mmap.mmap() is larger than the length of the
- If the size passed to mmap.mmap() is larger than the length of the
...
...
Modules/cPickle.c
View file @
658009af
...
@@ -4760,6 +4760,10 @@ init_stuff(PyObject *module_dict)
...
@@ -4760,6 +4760,10 @@ init_stuff(PyObject *module_dict)
PickleError
,
NULL
)))
PickleError
,
NULL
)))
return
-
1
;
return
-
1
;
if
(
!
(
BadPickleGet
=
PyErr_NewException
(
"cPickle.BadPickleGet"
,
UnpicklingError
,
NULL
)))
return
-
1
;
if
(
PyDict_SetItemString
(
module_dict
,
"PickleError"
,
if
(
PyDict_SetItemString
(
module_dict
,
"PickleError"
,
PickleError
)
<
0
)
PickleError
)
<
0
)
return
-
1
;
return
-
1
;
...
@@ -4776,9 +4780,6 @@ init_stuff(PyObject *module_dict)
...
@@ -4776,9 +4780,6 @@ init_stuff(PyObject *module_dict)
UnpickleableError
)
<
0
)
UnpickleableError
)
<
0
)
return
-
1
;
return
-
1
;
if
(
!
(
BadPickleGet
=
PyString_FromString
(
"cPickle.BadPickleGet"
)))
return
-
1
;
if
(
PyDict_SetItemString
(
module_dict
,
"BadPickleGet"
,
if
(
PyDict_SetItemString
(
module_dict
,
"BadPickleGet"
,
BadPickleGet
)
<
0
)
BadPickleGet
)
<
0
)
return
-
1
;
return
-
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