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
12d5e0f0
Commit
12d5e0f0
authored
Aug 24, 2013
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Plain Diff
Merge heads
parents
96d5c541
91541931
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
23 deletions
+0
-23
Objects/object.c
Objects/object.c
+0
-16
Objects/typeobject.c
Objects/typeobject.c
+0
-7
No files found.
Objects/object.c
View file @
12d5e0f0
...
...
@@ -443,14 +443,6 @@ PyObject_Repr(PyObject *v)
if
(
Py_TYPE
(
v
)
->
tp_repr
==
NULL
)
return
PyUnicode_FromFormat
(
"<%s object at %p>"
,
v
->
ob_type
->
tp_name
,
v
);
#ifdef Py_DEBUG
/* PyObject_Repr() must not be called with an exception set,
because it may clear it (directly or indirectly) and so the
caller looses its exception */
assert
(
!
PyErr_Occurred
());
#endif
res
=
(
*
v
->
ob_type
->
tp_repr
)(
v
);
if
(
res
==
NULL
)
return
NULL
;
...
...
@@ -482,7 +474,6 @@ PyObject_Str(PyObject *v)
#endif
if
(
v
==
NULL
)
return
PyUnicode_FromString
(
"<NULL>"
);
if
(
PyUnicode_CheckExact
(
v
))
{
#ifndef Py_DEBUG
if
(
PyUnicode_READY
(
v
)
<
0
)
...
...
@@ -494,13 +485,6 @@ PyObject_Str(PyObject *v)
if
(
Py_TYPE
(
v
)
->
tp_str
==
NULL
)
return
PyObject_Repr
(
v
);
#ifdef Py_DEBUG
/* PyObject_Str() must not be called with an exception set,
because it may clear it (directly or indirectly) and so the
caller looses its exception */
assert
(
!
PyErr_Occurred
());
#endif
/* It is possible for a type to have a tp_str representation that loops
infinitely. */
if
(
Py_EnterRecursiveCall
(
" while getting the str of an object"
))
...
...
Objects/typeobject.c
View file @
12d5e0f0
...
...
@@ -736,13 +736,6 @@ type_call(PyTypeObject *type, PyObject *args, PyObject *kwds)
return
NULL
;
}
#ifdef Py_DEBUG
/* type_call() must not be called with an exception set,
because it may clear it (directly or indirectly) and so the
caller looses its exception */
assert
(
!
PyErr_Occurred
());
#endif
obj
=
type
->
tp_new
(
type
,
args
,
kwds
);
if
(
obj
!=
NULL
)
{
/* Ugly exception: when the call was type(something),
...
...
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