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
6a3f1385
Commit
6a3f1385
authored
Mar 25, 2001
by
Marc-André Lemburg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed ref count bug. Patch #411191. Found by Walter Dörwald.
parent
ca6d7024
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
Objects/object.c
Objects/object.c
+3
-1
No files found.
Objects/object.c
View file @
6a3f1385
...
...
@@ -346,8 +346,10 @@ PyObject_Unicode(PyObject *v)
Py_INCREF
(
v
);
return
v
;
}
else
if
(
PyString_Check
(
v
))
else
if
(
PyString_Check
(
v
))
{
Py_INCREF
(
v
);
res
=
v
;
}
else
if
(
v
->
ob_type
->
tp_str
!=
NULL
)
res
=
(
*
v
->
ob_type
->
tp_str
)(
v
);
else
{
...
...
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