Skip to content

Commit 45cecc6

Browse files
authored
PEP 768: Remove Py_MAX_SCRIPT_PATH_SIZE (#4591)
1 parent 5e3e9f8 commit 45cecc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

peps/pep-0768.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ A new structure is added to PyThreadState to support remote debugging:
137137
138138
typedef struct {
139139
int debugger_pending_call;
140-
char debugger_script_path[Py_MAX_SCRIPT_PATH_SIZE];
140+
char debugger_script_path[...];
141141
} _PyRemoteDebuggerSupport;
142142
143143
This structure is appended to ``PyThreadState``, adding only a few fields that
@@ -147,7 +147,7 @@ provides a filesystem path to a Python source file (.py) that will be executed w
147147
the interpreter reaches a safe point. The path must point to a Python source file,
148148
not compiled Python code (.pyc) or any other format.
149149

150-
The value for ``Py_MAX_SCRIPT_PATH_SIZE`` will be a trade-off between binary size
150+
The size of ``debugger_script_path`` will be a trade-off between binary size
151151
and how big debugging scripts' paths can be. To limit the memory overhead per
152152
thread we will be limiting this to 512 bytes. This size will also be provided as
153153
part of the debugger support structure so debuggers know how much they can

0 commit comments

Comments
 (0)