mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
[3.14] Fix typo in Doc/extending/extending.rst (GH-136890) (#137355)
Co-authored-by: Cornelius Roemer <cornelius.roemer@gmail.com>
This commit is contained in:
parent
badab2c1a9
commit
dc20c1a47e
1 changed files with 1 additions and 1 deletions
|
|
@ -214,7 +214,7 @@ and initialize it by calling :c:func:`PyErr_NewException` in the module's
|
|||
|
||||
SpamError = PyErr_NewException("spam.error", NULL, NULL);
|
||||
|
||||
Since :c:data:`!SpamError` is a global variable, it will be overwitten every time
|
||||
Since :c:data:`!SpamError` is a global variable, it will be overwritten every time
|
||||
the module is reinitialized, when the :c:data:`Py_mod_exec` function is called.
|
||||
|
||||
For now, let's avoid the issue: we will block repeated initialization by raising an
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue