Miss Islington (bot)
b8e198a5d0
bpo-37441: Fix wrong PyErr_SetImportErrorSubclass signature in doc (GH-14453)
...
(cherry picked from commit aeecf38066 )
Co-authored-by: Hai Shi <shihai1992@gmail.com >
2019-07-02 19:04:29 -07:00
Miss Islington (bot)
96f581cf9d
bpo-36763: Add PyConfig_SetWideStringList() (GH-14444)
...
(cherry picked from commit 36242fd871 )
Co-authored-by: Victor Stinner <vstinner@redhat.com >
2019-07-01 10:39:58 -07:00
Miss Islington (bot)
cb083f7cdf
bpo-37221: Add PyCode_NewWithPosOnlyArgs to be used internally and set PyCode_New as a compatibility wrapper (GH-13959) ( #14505 )
...
Add PyCode_NewEx to be used internally and set PyCode_New as a compatibility wrapper
(cherry picked from commit 4a2edc34a4 )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com >
2019-07-01 13:29:14 +02:00
Miss Islington (bot)
ad00640f93
bpo-37432: Doc: Fix signature of PyObject_Del() (GH-14430)
...
(cherry picked from commit b4bee03087 )
Co-authored-by: Hai Shi <shihai1992@gmail.com >
2019-06-28 02:16:36 -07:00
Miss Islington (bot)
4fee28aa42
bpo-37390: Add audit event table to documentations (GH-14406)
...
Also updates some (unreleased) event names to be consistent with the others.
(cherry picked from commit 44f91c388a )
Co-authored-by: Steve Dower <steve.dower@python.org >
2019-06-27 11:07:16 -07:00
Miss Islington (bot)
6258c1f716
bpo-37342: Fix the incorrect nb_index's type in typeobj documentation (GH-14241)
...
It was listed as `binaryfunc`. It should be `unaryfunc`.
(cherry picked from commit bc5caf88ca )
Co-authored-by: Hai Shi <shihai1992@gmail.com >
2019-06-19 20:41:41 -07:00
Victor Stinner
71031cf4ed
bpo-37194: Complete PyObject_CallXXX() docs (GH-14156) (GH-14157)
...
Mention explicitly that PyObject_CallXXX() functions raise an
exception an failure.
(cherry picked from commit 1ce2656f13 )
2019-06-17 15:23:59 +02:00
Miss Islington (bot)
e784f9f1c3
bpo-28805: document METH_FASTCALL (GH-14079)
...
(cherry picked from commit 5600b5e1b2 )
Co-authored-by: Jeroen Demeyer <J.Demeyer@UGent.be >
2019-06-16 16:25:37 -07:00
Victor Stinner
f9445a391e
[3.8] bpo-37253: Document PyCompilerFlags.cf_feature_version (GH-14019) (GH-14038)
...
* Update PyCompilerFlags structure documentation.
* Document the new cf_feature_version field in the Changes in the C
API section of the What's New in Python 3.8 doc.
(cherry picked from commit 2c9b498759 )
2019-06-13 02:40:41 +02:00
Zackery Spytz
dd492d9c35
[3.8] bpo-37170: Fix the cast on error in PyLong_AsUnsignedLongLongMask() (GH-13860) (GH-13891)
...
(cherry picked from commit dc2476500d )
Co-authored-by: Zackery Spytz <zspytz@gmail.com >
2019-06-07 16:22:58 +02:00
Jeroen Demeyer
9e3e06e582
bpo-36974: document PEP 590 (GH-13450)
2019-06-03 01:43:13 +02:00
Serhiy Storchaka
bdbad71b9d
bpo-20092. Use __index__ in constructors of int, float and complex. (GH-13108)
2019-06-02 00:05:48 +03:00
Pablo Galindo
3b57f50efc
bpo-36842: Pass positional only parameters to code_new audit hook (GH-13707)
2019-06-01 21:18:48 +01:00
Pablo Galindo
cd74e66a8c
bpo-37122: Make co->co_argcount represent the total number of positonal arguments in the code object (GH-13726)
2019-06-01 18:08:04 +01:00
Pablo Galindo
545a3b8814
Document changes for PyCode_New regarding PEP570 (GH-13706)
2019-05-31 19:33:41 +01:00
Antoine Pitrou
ada319bb6d
bpo-32388: Remove cross-version binary compatibility requirement in tp_flags (GH-4944)
...
It is now allowed to add new fields at the end of the PyTypeObject struct without having to allocate a dedicated compatibility flag in tp_flags.
This will reduce the risk of running out of bits in the 32-bit tp_flags value.
2019-05-29 22:12:38 +02:00
Pablo Galindo
b76302ddd0
bpo-36540: Documentation for PEP570 - Python positional only arguments ( #13202 )
...
* bpo-36540: Documentation for PEP570 - Python positional only arguments
* fixup! bpo-36540: Documentation for PEP570 - Python positional only arguments
* Update reference for compound statements
* Apply suggestions from Carol
Co-Authored-By: Carol Willing <carolcode@willingconsulting.com >
* Update Doc/tutorial/controlflow.rst
Co-Authored-By: Carol Willing <carolcode@willingconsulting.com >
* Add extra bullet point and minor edits
2019-05-28 16:45:32 -07:00
Zackery Spytz
3c8724fc60
bpo-33407: Implement Py_DEPRECATED() on MSVC (GH-8980)
2019-05-28 17:16:33 +02:00
Jeroen Demeyer
eb65e2443a
bpo-36922: implement PEP-590 Py_TPFLAGS_METHOD_DESCRIPTOR (GH-13338)
...
Co-authored-by: Mark Shannon <mark@hotpy.org >
2019-05-28 14:42:53 +02:00
Victor Stinner
331a6a56e9
bpo-36763: Implement the PEP 587 (GH-13592)
...
* Add a whole new documentation page:
"Python Initialization Configuration"
* PyWideStringList_Append() return type is now PyStatus,
instead of int
* PyInterpreterState_New() now calls PyConfig_Clear() if
PyConfig_InitPythonConfig() fails.
* Rename files:
* Python/coreconfig.c => Python/initconfig.c
* Include/cpython/coreconfig.h => Include/cpython/initconfig.h
* Include/internal/: pycore_coreconfig.h => pycore_initconfig.h
* Rename structures
* _PyCoreConfig => PyConfig
* _PyPreConfig => PyPreConfig
* _PyInitError => PyStatus
* _PyWstrList => PyWideStringList
* Rename PyConfig fields:
* use_module_search_paths => module_search_paths_set
* module_search_path_env => pythonpath_env
* Rename PyStatus field: _func => func
* PyInterpreterState: rename core_config field to config
* Rename macros and functions:
* _PyCoreConfig_SetArgv() => PyConfig_SetBytesArgv()
* _PyCoreConfig_SetWideArgv() => PyConfig_SetArgv()
* _PyCoreConfig_DecodeLocale() => PyConfig_SetBytesString()
* _PyInitError_Failed() => PyStatus_Exception()
* _Py_INIT_ERROR_TYPE_xxx enums => _PyStatus_TYPE_xxx
* _Py_UnixMain() => Py_BytesMain()
* _Py_ExitInitError() => Py_ExitStatusException()
* _Py_PreInitializeFromArgs() => Py_PreInitializeFromBytesArgs()
* _Py_PreInitializeFromWideArgs() => Py_PreInitializeFromArgs()
* _Py_PreInitialize() => Py_PreInitialize()
* _Py_RunMain() => Py_RunMain()
* _Py_InitializeFromConfig() => Py_InitializeFromConfig()
* _Py_INIT_XXX() => _PyStatus_XXX()
* _Py_INIT_FAILED() => _PyStatus_EXCEPTION()
* Rename 'err' PyStatus variables to 'status'
* Convert RUN_CODE() macro to config_run_code() static inline function
* Remove functions:
* _Py_InitializeFromArgs()
* _Py_InitializeFromWideArgs()
* _PyInterpreterState_GetCoreConfig()
2019-05-27 16:39:22 +02:00
Victor Stinner
b3a9843cd1
Support Py_UNUSED() on clang (GH-13544)
2019-05-24 15:16:08 +02:00
Xtreak
cf7d5ef49b
Fix typo: decription -> description (GH-13543)
2019-05-24 04:17:47 -07:00
Petr Viktorin
f1e17e9f97
bpo-34626: Document creating heap types from the C-API (GH-9154)
...
bpo-34626: Document creating heap types from the C-API
Add missing descriptions of PEP384's PyType_Spec and PyType_Slot,
along with some introductory prose.
2019-05-24 11:19:42 +02:00
Matěj Cepl
608876b6b1
bpo-23395: Fix PyErr_SetInterrupt if the SIGINT signal is ignored or not handled (GH-7778)
...
``_thread.interrupt_main()`` now avoids setting the Python error status if the ``SIGINT`` signal is ignored or not handled by Python.
2019-05-23 22:30:00 +02:00
Steve Dower
b82e17e626
bpo-36842: Implement PEP 578 (GH-12613)
...
Adds sys.audit, sys.addaudithook, io.open_code, and associated C APIs.
2019-05-23 08:45:22 -07:00