Mercurial > cpython-lru_cache-weakref
comparison Include/Python.h @ 22567:aedda0abd313 legacy-trunk
Add a comment that PyArg_GetInt is deprecated and should not be used
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Mon, 25 Mar 2002 22:21:58 +0000 |
| parents | 043ad7adc896 |
| children | aa8d59823add |
comparison
equal
deleted
inserted
replaced
| 22566:39e42d6f5da2 | 22567:aedda0abd313 |
|---|---|
| 115 #include "intrcheck.h" | 115 #include "intrcheck.h" |
| 116 #include "import.h" | 116 #include "import.h" |
| 117 | 117 |
| 118 #include "abstract.h" | 118 #include "abstract.h" |
| 119 | 119 |
| 120 /* PyArg_GetInt is deprecated and should not be used, use PyArg_Parse(). */ | |
| 120 #define PyArg_GetInt(v, a) PyArg_Parse((v), "i", (a)) | 121 #define PyArg_GetInt(v, a) PyArg_Parse((v), "i", (a)) |
| 121 | 122 |
| 122 /* PyArg_NoArgs should not be necessary. | 123 /* PyArg_NoArgs should not be necessary. |
| 123 Set ml_flags in the PyMethodDef to METH_NOARGS. */ | 124 Set ml_flags in the PyMethodDef to METH_NOARGS. */ |
| 124 #define PyArg_NoArgs(v) PyArg_Parse(v, "") | 125 #define PyArg_NoArgs(v) PyArg_Parse(v, "") |
