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
e0e89f79
Commit
e0e89f79
authored
Feb 16, 2006
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert 42400.
parent
2c95cc6d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
11 deletions
+11
-11
Objects/bufferobject.c
Objects/bufferobject.c
+3
-3
Objects/dictobject.c
Objects/dictobject.c
+1
-1
Objects/funcobject.c
Objects/funcobject.c
+2
-2
Objects/listobject.c
Objects/listobject.c
+2
-2
Objects/structseq.c
Objects/structseq.c
+3
-3
No files found.
Objects/bufferobject.c
View file @
e0e89f79
...
...
@@ -246,15 +246,15 @@ buffer_repr(PyBufferObject *self)
return
PyString_FromFormat
(
"<%s buffer ptr %p, size %zd at %p>"
,
status
,
self
->
b_ptr
,
(
long
)
self
->
b_size
,
self
->
b_size
,
self
);
else
return
PyString_FromFormat
(
"<%s buffer for %p, size %zd, offset %zd at %p>"
,
status
,
self
->
b_base
,
(
long
)
self
->
b_size
,
(
long
)
self
->
b_offset
,
self
->
b_size
,
self
->
b_offset
,
self
);
}
...
...
Objects/dictobject.c
View file @
e0e89f79
...
...
@@ -1149,7 +1149,7 @@ PyDict_MergeFromSeq2(PyObject *d, PyObject *seq2, int override)
PyErr_Format
(
PyExc_ValueError
,
"dictionary update sequence element #%d "
"has length %zd; 2 is required"
,
i
,
(
long
)
n
);
i
,
n
);
goto
Fail
;
}
...
...
Objects/funcobject.c
View file @
e0e89f79
...
...
@@ -251,7 +251,7 @@ func_set_code(PyFunctionObject *op, PyObject *value)
"%s() requires a code object with %zd free vars,"
" not %zd"
,
PyString_AsString
(
op
->
func_name
),
(
long
)
nclosure
,
(
long
)
nfree
);
nclosure
,
nfree
);
return
-
1
;
}
tmp
=
op
->
func_code
;
...
...
@@ -403,7 +403,7 @@ func_new(PyTypeObject* type, PyObject* args, PyObject* kw)
return
PyErr_Format
(
PyExc_ValueError
,
"%s requires closure of length %zd, not %zd"
,
PyString_AS_STRING
(
code
->
co_name
),
(
long
)
nfree
,
(
long
)
nclosure
);
nfree
,
nclosure
);
if
(
nclosure
)
{
Py_ssize_t
i
;
for
(
i
=
0
;
i
<
nclosure
;
i
++
)
{
...
...
Objects/listobject.c
View file @
e0e89f79
...
...
@@ -2600,8 +2600,8 @@ list_ass_subscript(PyListObject* self, PyObject* item, PyObject* value)
if
(
PySequence_Fast_GET_SIZE
(
seq
)
!=
slicelength
)
{
PyErr_Format
(
PyExc_ValueError
,
"attempt to assign sequence of size %zd to extended slice of size %zd"
,
(
long
)
PySequence_Fast_GET_SIZE
(
seq
),
(
long
)
slicelength
);
PySequence_Fast_GET_SIZE
(
seq
),
slicelength
);
Py_DECREF
(
seq
);
return
-
1
;
}
...
...
Objects/structseq.c
View file @
e0e89f79
...
...
@@ -126,7 +126,7 @@ structseq_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
if
(
len
<
min_len
)
{
PyErr_Format
(
PyExc_TypeError
,
"%.500s() takes an at least %zd-sequence (%zd-sequence given)"
,
type
->
tp_name
,
(
long
)
min_len
,
(
long
)
len
);
type
->
tp_name
,
min_len
,
len
);
Py_DECREF
(
arg
);
return
NULL
;
}
...
...
@@ -134,7 +134,7 @@ structseq_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
if
(
len
>
max_len
)
{
PyErr_Format
(
PyExc_TypeError
,
"%.500s() takes an at most %zd-sequence (%zd-sequence given)"
,
type
->
tp_name
,
(
long
)
max_len
,
(
long
)
len
);
type
->
tp_name
,
max_len
,
len
);
Py_DECREF
(
arg
);
return
NULL
;
}
...
...
@@ -143,7 +143,7 @@ structseq_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
if
(
len
!=
min_len
)
{
PyErr_Format
(
PyExc_TypeError
,
"%.500s() takes a %zd-sequence (%zd-sequence given)"
,
type
->
tp_name
,
(
long
)
min_len
,
(
long
)
len
);
type
->
tp_name
,
min_len
,
len
);
Py_DECREF
(
arg
);
return
NULL
;
}
...
...
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