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
b3f37556
Commit
b3f37556
authored
Oct 09, 2006
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix wording in comment
parent
99994790
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Objects/typeobject.c
Objects/typeobject.c
+2
-2
No files found.
Objects/typeobject.c
View file @
b3f37556
...
...
@@ -3743,7 +3743,7 @@ hackcheck(PyObject *self, setattrofunc func, char *what)
while
(
type
&&
type
->
tp_flags
&
Py_TPFLAGS_HEAPTYPE
)
type
=
type
->
tp_base
;
/* If type is NULL now, this is a really weird type.
In the s
ame
of backwards compatibility (?), just shut up. */
In the s
pirit
of backwards compatibility (?), just shut up. */
if
(
type
&&
type
->
tp_setattro
!=
func
)
{
PyErr_Format
(
PyExc_TypeError
,
"can't apply this %s to %s object"
,
...
...
@@ -3960,7 +3960,7 @@ tp_new_wrapper(PyObject *self, PyObject *args, PyObject *kwds)
while
(
staticbase
&&
(
staticbase
->
tp_flags
&
Py_TPFLAGS_HEAPTYPE
))
staticbase
=
staticbase
->
tp_base
;
/* If staticbase is NULL now, it is a really weird type.
In the s
ame
of backwards compatibility (?), just shut up. */
In the s
pirit
of backwards compatibility (?), just shut up. */
if
(
staticbase
&&
staticbase
->
tp_new
!=
type
->
tp_new
)
{
PyErr_Format
(
PyExc_TypeError
,
"%s.__new__(%s) is not safe, use %s.__new__()"
,
...
...
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