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
3fec24ef
Commit
3fec24ef
authored
Mar 31, 2014
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Plain Diff
Issue #21073: explain why Py_ReprEnter() allows for a missing thread state.
parents
934a2957
04d17d30
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
Objects/object.c
Objects/object.c
+2
-0
No files found.
Objects/object.c
View file @
3fec24ef
...
@@ -1849,6 +1849,8 @@ Py_ReprEnter(PyObject *obj)
...
@@ -1849,6 +1849,8 @@ Py_ReprEnter(PyObject *obj)
Py_ssize_t
i
;
Py_ssize_t
i
;
dict
=
PyThreadState_GetDict
();
dict
=
PyThreadState_GetDict
();
/* Ignore a missing thread-state, so that this function can be called
early on startup. */
if
(
dict
==
NULL
)
if
(
dict
==
NULL
)
return
0
;
return
0
;
list
=
_PyDict_GetItemId
(
dict
,
&
PyId_Py_Repr
);
list
=
_PyDict_GetItemId
(
dict
,
&
PyId_Py_Repr
);
...
...
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