8000 gh-76785: Rename _xxsubinterpreters to _interpreters (gh-117791) · python/cpython@03e3e31 · GitHub
[go: up one dir, main page]

Skip to content

Commit 03e3e31

Browse files
1 parent af3c1d8 commit 03e3e31

34 files changed

+550
-543
lines changed

Include/internal/pycore_atexit.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ struct atexit_state {
5454
int callback_len;
5555
};
5656

57-
// Export for '_xxinterpchannels' shared extension
57+
// Export for '_interpchannels' shared extension
5858
PyAPI_FUNC(int) _Py_AtExit(
5959
PyInterpreterState *interp,
6060
atexit_datacallbackfunc func,

Include/internal/pycore_pybuffer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ extern "C" {
99
#endif
1010

1111

12-
// Exported for the _xxinterpchannels module.
12+
// Exported for the _interpchannels module.
1313
PyAPI_FUNC(int) _PyBuffer_ReleaseInInterpreter(
1414
PyInterpreterState *interp, Py_buffer *view);
1515
PyAPI_FUNC(int) _PyBuffer_ReleaseInInterpreterAndRawFree(

Include/internal/pycore_pystate.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ _Py_IsMainInterpreterFinalizing(PyInterpreterState *interp)
7777
interp == &_PyRuntime._main_interpreter);
7878
}
7979

80-
// Export for _xxsubinterpreters module.
80+
// Export for _interpreters module.
8181
PyAPI_FUNC(PyObject *) _PyInterpreterState_GetIDObject(PyInterpreterState *);
8282

83-
// Export for _xxsubinterpreters module.
83+
// Export for _interpreters module.
8484
PyAPI_FUNC(int) _PyInterpreterState_SetRunningMain(PyInterpreterState *);
8585
PyAPI_FUNC(void) _PyInterpreterState_SetNotRunningMain(PyInterpreterState *);
8686
PyAPI_FUNC(int) _PyInterpreterState_IsRunningMain(PyInterpreterState *);

Include/internal/pycore_pythread.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ extern void _PyThread_AfterFork(struct _pythread_runtime_state *state);
9999
// unset: -1 seconds, in nanoseconds
100100
#define PyThread_UNSET_TIMEOUT ((PyTime_t)(-1 * 1000 * 1000 * 1000))
101101

102-
// Exported for the _xxinterpchannels module.
102+
// Exported for the _interpchannels module.
103103
PyAPI_FUNC(int) PyThread_ParseTimeoutArg(
104104
PyObject *arg,
105105
int blocking,
@@ -111,7 +111,7 @@ PyAPI_FUNC(int) PyThread_ParseTimeoutArg(
111111
* are returned, depending on whether the lock can be acquired within the
112112
* timeout.
113113
*/
114-
// Exported for the _xxinterpchannels module.
114+
// Exported for the _interpchannels module.
115115
PyAPI_FUNC(PyLockStatus) PyThread_acquire_lock_timed_with_retries(
116116
PyThread_type_lock,
117117
PY_TIMEOUT_T microseconds);

Lib/test/support/import_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def multi_interp_extensions_check(enabled=True):
114114
This only applies to modules that haven't been imported yet.
115115
It overrides the PyInterpreterConfig.check_multi_interp_extensions
116116
setting (see support.run_in_subinterp_with_config() and
117-
_xxsubinterpreters.create()).
117+
_interpreters.create()).
118118
119119
Also see importlib.utils.allowing_all_extensions().
120120
"""

Lib/test/support/interpreters/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
import threading
44
import weakref
5-
import _xxsubinterpreters as _interpreters
5+
import _interpreters
66

77
# aliases:
8-
from _xxsubinterpreters import (
8+
from _interpreters import (
99
InterpreterError, InterpreterNotFoundError, NotShareableError,
1010
is_shareable,
1111
)

Lib/test/support/interpreters/channels.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
"""Cross-interpreter Channels High Level Module."""
22

33
import time
4-
import _xxinterpchannels as _channels
4+
import _interpchannels as _channels
55

66
# aliases:
7-
from _xxinterpchannels import (
7+
from _interpchannels import (
88
ChannelError, ChannelNotFoundError, ChannelClosedError,
99
ChannelEmptyError, ChannelNotEmptyError,
1010
)

Lib/test/support/interpreters/queues.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
import queue
55
import time
66
import weakref
7-
import _xxinterpqueues as _queues
7+
import _interpqueues as _queues
88

99
# aliases:
10-
from _xxinterpqueues import (
10+
from _interpqueues import (
1111
QueueError, QueueNotFoundError,
1212
)
1313

0 commit comments

Comments
 (0)
0