|
2 | 2 | Title: Isolating Extension Modules
|
3 | 3 | Author: Petr Viktorin < [email protected]>
|
4 | 4 |
|
5 |
| -Status: Draft |
| 5 | +Status: Active |
6 | 6 | Type: Informational
|
7 | 7 | Content-Type: text/x-rst
|
8 | 8 | Created: 25-Aug-2020
|
@@ -140,10 +140,8 @@ write such a module, or to convert an existing module.
|
140 | 140 | Note that support is a work in progress; the API for some features your
|
141 | 141 | module needs might not yet be ready.
|
142 | 142 |
|
143 |
| -A full example module is currently available in `a fork on |
144 |
| -GitHub <https://github.com/encukou/cpython/blob/xxlimited-facelift/Modules/xxlimited.c>`__. |
145 |
| - |
146 |
| -.. XXX: Later, it should be in the CPython source tree. |
| 143 | +A full example module is available as |
| 144 | +`xxlimited <https://github.com/python/cpython/blob/master/Modules/xxlimited.c>`__. |
147 | 145 |
|
148 | 146 | This section assumes that “*you*” are an extension module author.
|
149 | 147 |
|
@@ -254,12 +252,9 @@ must hold references to those objects and implement module-level hooks
|
254 | 252 | require some work and make the code longer; this is the price for
|
255 | 253 | modules which can be unloaded cleanly.
|
256 | 254 |
|
257 |
| -An example of a module with per-module state is currently available in |
258 |
| -`a fork on GitHub <https://github.com/encukou/cpython/blob/xxlimited-facelift/Modules/xxlimited.c>`__; |
259 |
| -later it should be in the CPython source tree, with module |
260 |
| -initialization is at the bottom of the file. |
261 |
| - |
262 |
| -.. XXX: Later, it should be in the CPython source tree. |
| 255 | +An example of a module with per-module state is currently available as |
| 256 | +`xxlimited <https://github.com/python/cpython/blob/master/Modules/xxlimited.c>`__; |
| 257 | +example module initialization shown at the bottom of the file. |
263 | 258 |
|
264 | 259 |
|
265 | 260 | Opt-Out: Limiting to One Module Object per Process
|
|
0 commit comments