forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:python/cpython into pythongh-102251
- Loading branch information
Showing
108 changed files
with
3,398 additions
and
2,323 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,7 +70,7 @@ the module and a copyright notice if you like). | |
headers are included. | ||
|
||
It is recommended to always define ``PY_SSIZE_T_CLEAN`` before including | ||
``Python.h``. See :ref:`parsetuple` for a description of this macro. | ||
``Python.h``. See :ref:`arg-parsing-string-and-buffers` for a description of this macro. | ||
|
||
All user-visible symbols defined by :file:`Python.h` have a prefix of ``Py`` or | ||
``PY``, except those defined in standard header files. For convenience, and | ||
|
@@ -649,7 +649,7 @@ Note that any Python object references which are provided to the caller are | |
|
||
Some example calls:: | ||
|
||
#define PY_SSIZE_T_CLEAN /* Make "s#" use Py_ssize_t rather than int. */ | ||
#define PY_SSIZE_T_CLEAN | ||
#include <Python.h> | ||
|
||
:: | ||
|
@@ -745,7 +745,7 @@ it returns false and raises an appropriate exception. | |
Here is an example module which uses keywords, based on an example by Geoff | ||
Philbrick ([email protected]):: | ||
|
||
#define PY_SSIZE_T_CLEAN /* Make "s#" use Py_ssize_t rather than int. */ | ||
#define PY_SSIZE_T_CLEAN | ||
#include <Python.h> | ||
|
||
static PyObject * | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.