diff -r 35b50c26f780 Misc/NEWS --- a/Misc/NEWS Sun Dec 11 00:18:36 2016 +0000 +++ b/Misc/NEWS Sat Dec 31 17:18:31 2016 -0600 @@ -737,8 +737,8 @@ - Issue #26154: Add a new private _PyThreadState_UncheckedGet() function to get the current Python thread state, but don't issue a fatal error if it is NULL. - This new function must be used instead of accessing directly the - _PyThreadState_Current variable. The variable is no more exposed since + This new function must be used instead of directly accessing the + _PyThreadState_Current variable. The variable is no longer exposed since Python 3.5.1 to hide the exact implementation of atomic C types, to avoid compiler issues. diff -r 35b50c26f780 Objects/dictobject.c --- a/Objects/dictobject.c Sun Dec 11 00:18:36 2016 +0000 +++ b/Objects/dictobject.c Sat Dec 31 17:18:31 2016 -0600 @@ -1059,7 +1059,7 @@ /* We can arrive here with a NULL tstate during initialization: try running "python -Wi" for an example related to string interning. Let's just hope that no exception occurs then... This must be - _PyThreadState_Current and not PyThreadState_GET() because in debug + _PyThreadState_UncheckedGet and not PyThreadState_GET() because in debug mode, the latter complains if tstate is NULL. */ tstate = _PyThreadState_UncheckedGet(); if (tstate != NULL && tstate->curexc_type != NULL) { @@ -1096,7 +1096,7 @@ /* We can arrive here with a NULL tstate during initialization: try running "python -Wi" for an example related to string interning. Let's just hope that no exception occurs then... This must be - _PyThreadState_Current and not PyThreadState_GET() because in debug + _PyThreadState_UncheckedGet and not PyThreadState_GET() because in debug mode, the latter complains if tstate is NULL. */ tstate = _PyThreadState_UncheckedGet(); if (tstate != NULL && tstate->curexc_type != NULL) {