Skip to content

Commit 72a7111

Browse files
committed
Small fixups
1 parent 2abd718 commit 72a7111

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

Include/internal/pycore_moduleobject.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,6 @@ extern Py_ssize_t _PyModule_GetFilenameUTF8(
7878
PyObject* _Py_module_getattro_impl(PyModuleObject *m, PyObject *name, int suppress);
7979
PyObject* _Py_module_getattro(PyObject *m, PyObject *name);
8080

81-
PyAPI_FUNC(int) _PyModule_ReplaceLazyValue(
82-
PyObject *dict, PyObject *name, PyObject *value);
83-
8481
#ifdef __cplusplus
8582
}
8683
#endif

Objects/dictobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7647,7 +7647,7 @@ PyDict_AddWatcher(PyDict_WatchCallback callback)
76477647
{
76487648
PyInterpreterState *interp = _PyInterpreterState_GET();
76497649

7650-
/* Start at 2, as 0 and 1 are reserved for CPython */
7650+
/* Some watchers are reserved for CPython, start at the first available one */
76517651
for (int i = FIRST_AVAILABLE_WATCHER; i < DICT_MAX_WATCHERS; i++) {
76527652
if (!interp->dict_state.watchers[i]) {
76537653
interp->dict_state.watchers[i] = callback;

0 commit comments

Comments
 (0)