| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
| |
(cherry picked from commit 4173772031747a9b249be4100b4aa9eda805ea23)
Co-authored-by: Gregory P. Smith <greg@krypto.org>
|
| |
|
|
|
| |
(cherry picked from commit 57dd79e6f7f33bb4e6817ac58c9cb91de99675e0)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
| |
|
|
|
|
|
| |
(GH-11210)
(cherry picked from commit 3fcc1e08db6fb7e17acc4a8f63be3e42f52f094b)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit 55f41e45b4318cbe19209f5144641344d0049fb8)
Co-authored-by: Andre Delfino <adelfino@gmail.com>
|
| |
|
|
|
|
| |
PyType_GetFlags() return type is unsigned long, not long.
(cherry picked from commit 9fbcfc08e5814d7aa9287740187e461425a99f67)
Co-authored-by: Eddie Elizondo <eduardo.elizondorueda@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
as (GH-10580) (GH-10587)
Source of T_STRING: https://github.com/python/cpython/blob/e42b705188271da108de42b55d9344642170aa2b/Python/structmember.cGH-L51
Source of PyUnicode_FromString
https://github.com/python/cpython/blob/master/Include/unicodeobject.hGH-L702
https://bugs.python.org/issue25438
(cherry picked from commit 689d555ec135d4115574addd063c358ac4897cc4)
Co-authored-by: Windson yang <wiwindson@outlook.com>
https://bugs.python.org/issue25438
|
| |
|
|
|
|
|
|
| |
Deprecate _PyObject_GC_TRACK() and _PyObject_GC_UNTRACK() in the
documentation. These macros are removed from Python 3.8 by the commit
1a6be91e6fd65ce9cb88cbbbb193db7e92ec6076.
(cherry picked from commit 55b4771d5d18d5ff7c095aa1ab750fe0c8bb5e67)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
|
| |
|
|
|
|
| |
(GH-10231). (GH-10254)
(cherry picked from commit 3f819ca138db6945ee4271bf13e42db9f9b3b1e4)
|
| |
|
|
|
|
|
|
|
| |
Also, update the list of exceptions that may raised by PyMarshal_*
functions. We usually don't document exceptions raised by a
function, but in this case most of them were already documented
in C API and standard library documentation.
(cherry picked from commit defcffdf86780e3a184ebb25dc9a7b807753d57a)
Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit 5092439c2cb32112a5869b138011d38491db90a9)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
|
| |
|
|
| |
(cherry picked from commit f5b1183610d5888db3bbd639b1a0c945dbd8f8dd)
|
| |
|
|
|
| |
(cherry picked from commit 1179f4b40f375af5c59cd4b6be9cc313fa0e1a37)
Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
|
| |
|
|
|
| |
(cherry picked from commit bde3e0bf096219234321ca9898fc3d3aed598453)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
| |
|
|
|
| |
Py_UNICODE is deprecated since Python 3.3.
But the deprecation is missed in the c-api/arg document.
(cherry picked from commit 42ec190)
|
| |
|
|
|
| |
(cherry picked from commit aa50bf08e64f49d57917ab0b1aadf4308a3168a6)
Co-authored-by: Antoine Pitrou <pitrou@free.fr>
|
| |
|
|
|
|
|
|
| |
Multi-phase initialized modules allow m_traverse to be called while the
module is still being initialized, so module authors may need to account
for that.
(cherry picked from commit c2b0b12d1a137ada1023ab7c10b8d9a0249d95f9)
Co-authored-by: Marcel Plch <gmarcel.plch@gmail.com>
|
| |
|
|
|
|
|
|
| |
PySequence_Length() (GH-5767)
Dropped the part that says: "For objects that do not provide sequence protocol".
(cherry picked from commit 7a1e1786f98ad49caa157dcdf14ada9d0b07d0fd)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
|
| |
|
|
|
|
|
| |
(GH-5587). (GH-5598)
(cherry picked from commit 5bb0005f9ff768ac443924b4bb26c3818ce8dc5a)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
| |
|
|
|
|
|
| |
Document the error return of PyLong_As* APIs.
A frequent Python C API usage error is neglecting to check the return
value and/or PyErr_Occurred().
(cherry picked from commit f5b04a360e44aa9733f7a92dd66d2292d6c52955)
|
| |
|
|
| |
It will be triggered when propagating an exception.
(cherry picked from commit 79db11ce99332d62917be9d03b31494b1ff2f96a)
|
| |
|
|
|
| |
(GH-5361) (GH-5377)
(cherry picked from commit 9ed0aee27c249dada410a22fff4325a4a61df36d)
|
| |
|
|
|
| |
(GH-4056) (#5298)
(cherry picked from commit 131fd7f96c619bc7eaea956e45c6337175f4b27f)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
On FreeBSD and Solaris, os.strerror() now always decode the byte
string from the current locale encoding, rather than using
ASCII/surrogateescape in some cases.
Changes:
* Add _Py_DecodeLocaleEx() and _Py_EncodeLocaleEx() which has an
additional current_locale parameter.
* PyUnicode_DecodeLocale(), PyUnicode_DecodeLocaleAndSize() and
* PyUnicode_EncodeLocale() now always use the current locale
* encoding, instead of using Py_DecodeLocale()/Py_EncodeLocale().
* Document encoding in Py_DecodeLocale() and Py_EncodeLocale()
documentations.
* Add USE_FORCE_ASCII define to not define
decode_ascii_surrogateescape() on Android.
|
| |
|
|
|
| |
(#4379)
(cherry picked from commit e0582a37c8d1776a2fd4968e9216f3a05f780276)
|
| |
|
| |
(cherry picked from commit 82cd3cede804ca694fb0657fd985d5eff84a414f)
|
| |
|
|
|
|
|
|
|
|
|
| |
Document the following functions:
* PyObject_Malloc()
* PyObject_Calloc()
* PyObject_Realloc()
* PyObject_Free()
Fix also PyMem_RawFree() documentation.
(cherry picked from commit ec2cbdd1dff2c51788136480b2085e77506ebf34)
|
| |
|
|
|
| |
(GH-3993)
(cherry picked from commit 1b9e76ed3a055a53ca67397e928e1b408461900b)
|
| |
|
| |
(cherry picked from commit da67e0d644bd3185efdaa4d15cc2ac0828ca83f9)
|
| |
|
|
| |
`PyModule_New()` now refers to `PyModule_NewObject()`
(cherry picked from commit 2d0afef82a07afdb666f2ca0c533aac5d39155cd)
|
| |
|
| |
(cherry picked from commit 3378b2062c7fbb77a9b5e6d315d6b94160fac69a)
|
| |
|
| |
(cherry picked from commit 26896f2832324dde85cdd63d525571ca669f6f0b)
|
| |
|
|
| |
(GH-1068)
|
| | |
|
| |
|
| |
cherry-pick'ed from ec1f5df..e3d6db3
|
| |
|
| |
(cherry picked from commit c3c7ef088583cc12bd218138036d1edb6de9c63f)
|
| |
|
|
| |
Added the documentation for PyUnicode_Translate().
(cherry picked from commit c85a26628ceb9624c96c3064e8b99033c026d8a3)
|
| |
|
| |
(cherry picked from commit c611a5b1d4fab0123bf622f06c3bfa510221dc32)
|
| |
|
| |
(cherry picked from commit f669ffff6010a94f2d441200e0fd73e9dea2883e)
|
| |\ |
|
| | |
| |
| |
| | |
Patch by Ammar Askar.
|
| |\ \
| |/ |
|
| | | |
|
| | |
| |
| |
| | |
Patch by Berker Peksag.
|
| |\ \
| |/ |
|
| | | |
|
| |\ \
| |/ |
|
| | |
| |
| |
| | |
Patch by Chi Hsuan Yen.
|
| |\ \
| |/ |
|
| | | |
|
| |\ \
| |/ |
|