@@ -8,8 +8,8 @@ Content-Type: text/x-rst
8
8
Requires: 489, 573, 630
9
9
Created: 04-Apr-2022
10
10
Python-Version: 3.11
11
- Post-History: `04-Apr-2022 <https://discuss.python.org/t/14824 >`__
12
-
11
+ Post-History: `04-Apr-2022 <https://discuss.python.org/t/14824 >`__,
12
+ ` 11-Apr-2022 < https://mail.python.org/archives/list/[email protected] /thread/B3HYQIE4Z5WBJCC3FUZJZHXLM32I4BZA/ >`__
13
13
14
14
Abstract
15
15
========
@@ -67,6 +67,9 @@ All stdlib extension modules will be *isolated*. That is:
67
67
Conversion to heap types
68
68
------------------------
69
69
70
+ Static types that do not need module state access, and have no other reason to
71
+ be converted, should stay static.
72
+
70
73
Types whose methods need access to their module instance will be converted
71
74
to heap types following :pep: `630 `, with the following considerations:
72
75
@@ -97,9 +100,6 @@ If another kind of issue is found, the module in question should be unchanged
97
100
until a solution is found and added to the Devguide, and already
98
101
converted modules are checked and fixed.
99
102
100
- Static types that do not need module state access, and have no other reason to
101
- be converted, should stay static.
102
-
103
103
104
104
Process
105
105
-------
@@ -137,7 +137,7 @@ smaller modules.
137
137
3. Add relevant global variables to the module state ``struct ``, and modify code
138
138
that accesses the global state to use the module state helpers instead. This
139
139
step may be broken into several PR's.
140
- 4. Where necessary, convert heap types to static types.
140
+ 4. Where necessary, convert static types to heap types.
141
141
5. Convert the global module state struct to true module state.
142
142
6. Implement multi-phase initialisation.
143
143
0 commit comments