cpython/Doc/c-api
Victor Stinner 91106cd9ff
bpo-29240: PEP 540: Add a new UTF-8 Mode (#855)
* Add -X utf8 command line option, PYTHONUTF8 environment variable
  and a new sys.flags.utf8_mode flag.
* If the LC_CTYPE locale is "C" at startup: enable automatically the
  UTF-8 mode.
* Add _winapi.GetACP(). encodings._alias_mbcs() now calls
  _winapi.GetACP() to get the ANSI code page
* locale.getpreferredencoding() now returns 'UTF-8' in the UTF-8
  mode. As a side effect, open() now uses the UTF-8 encoding by
  default in this mode.
* Py_DecodeLocale() and Py_EncodeLocale() now use the UTF-8 encoding
  in the UTF-8 Mode.
* Update subprocess._args_from_interpreter_flags() to handle -X utf8
* Skip some tests relying on the current locale if the UTF-8 mode is
  enabled.
* Add test_utf8mode.py.
* _Py_DecodeUTF8_surrogateescape() gets a new optional parameter to
  return also the length (number of wide characters).
* pymain_get_global_config() and pymain_set_global_config() now
  always copy flag values, rather than only copying if the new value
  is greater than the old value.
2017-12-13 12:29:09 +01:00
..
abstract.rst Merged revisions 85082 via svnmerge from 2010-09-28 23:41:31 +00:00
allocation.rst Issue #18589: fix hyperlinking of type slots (tp_*) 2013-08-01 21:12:45 +02:00
apiabiversion.rst Remove row-spanning cell, which the Sphinx text writer does not support. 2013-03-16 08:01:49 +01:00
arg.rst bpo-29918: Add missed "const" modifiers in C API documentation. (#846) 2017-03-30 10:01:03 +03:00
bool.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
buffer.rst bpo-31754: Fix type of 'itemsize' in PyBuffer_FillContiguousStrides (GH-3993) 2017-10-15 10:31:36 +03:00
bytearray.rst #23088: Clarify null termination of bytes and strings in C API. 2015-05-13 20:31:53 -04:00
bytes.rst bpo-28415: Note 0 conversion different between Python and C (#885) 2017-04-27 11:36:35 +08:00
capsule.rst Issue #28496: Mark up constants 0, 1 and -1 that denote return values or 2016-10-27 21:41:19 +03:00
cell.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
code.rst [Issue 15476] Make "code object" its own entry in the index 2016-06-02 19:26:51 -04:00
codec.rst Issue #19676: Tweak documentation a bit. 2014-11-25 18:59:20 +02:00
complex.rst Issue #13522: Fix _Py_co_pow() documentation 2011-12-18 02:56:18 +01:00
concrete.rst Issue #24400: Introduce a distinct type for 'async def' coroutines. 2015-06-22 12:19:30 -04:00
conversion.rst Fixed documentation of functions with const char* arguments. 2015-06-21 17:11:21 +03:00
coro.rst Issue #24400: Introduce a distinct type for 'async def' coroutines. 2015-06-22 12:19:30 -04:00
datetime.rst bpo-31678: Fix typo in PyDateTime_DELTA_GET_MICROSECONDS (GH-3869) 2017-11-04 13:39:45 +03:00
descriptor.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
dict.rst bpo-29918: Add missed "const" modifiers in C API documentation. (#846) 2017-03-30 10:01:03 +03:00
exceptions.rst Fix typos in multiple `.rst` files (#1668) 2017-05-19 23:37:57 +03:00
file.rst Issue #1772673: The type of `char*` arguments now changed to `const char*`. 2013-10-19 21:03:34 +03:00
float.rst Issue #13522: document error return values of some float and complex C API functions. 2011-12-18 01:25:27 +01:00
function.rst improve PyFunction_New docs (closes #26986) 2016-05-09 23:43:53 -07:00
gcsupport.rst note that Py_VISIT handles NULL (closes #27183) 2016-06-02 11:35:59 -07:00
gen.rst Issue #25161: Merge full stops from 3.4 into 3.5 2015-10-10 10:44:25 +00:00
import.rst bpo-28411: Support other mappings in PyInterpreterState.modules. (#3593) 2017-09-15 16:35:20 -06:00
index.rst Introduce support for documenting which C API elements are not part of the stable/limited API. 2013-10-12 19:54:30 +02:00
init.rst bpo-32241: Add the const qualifire to declarations of umodifiable strings. (#4748) 2017-12-12 13:55:04 +02:00
intro.rst bpo-29179: Document the Py_UNUSED macro (#4341) 2017-11-08 07:59:20 -08:00
iter.rst Issue #19005: Fix documentation for PyIter_Next(). 2013-10-09 22:42:46 -07:00
iterator.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
list.rst Issue #13389: Full garbage collection passes now clear the freelists for 2011-11-15 00:00:12 +01:00
long.rst bpo-29751: Improve PyLong_FromString documentation (GH-915) 2017-04-23 20:54:08 -07:00
mapping.rst bpo-28280: Make PyMapping_Keys(), PyMapping_Values() and PyMapping_Items() always return a list (#3840) 2017-10-08 11:17:46 +03:00
marshal.rst bpo-29746: Update marshal docs to Python 3. (#547) 2017-03-12 08:53:22 +02:00
memory.rst bpo-32030: Rework memory allocators (#4625) 2017-11-29 17:20:38 +01:00
memoryview.rst Issue #23756: Clarify the terms "contiguous" and "bytes-like object". 2015-08-08 14:33:28 +02:00
method.rst Correct “an” → “a” with “Unicode”, “user”, “UTF”, etc 2016-04-15 02:14:19 +00:00
module.rst bpo-30656: Fix Python C API Module Objects documentation (GH-2170) 2017-06-13 10:58:18 -07:00
none.rst Issue #19795: Mark up None as literal text. 2016-10-19 16:29:26 +03:00
number.rst Issue #28496: Mark up constants 0, 1 and -1 that denote return values or 2016-10-27 21:41:19 +03:00
objbuffer.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
object.rst Uniformize argument names of "call" functions 2016-12-06 16:27:24 +01:00
objimpl.rst Split C API docs in Py3k branch. 2008-01-20 09:30:57 +00:00
refcounting.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
reflection.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
sequence.rst Issue #25701: Document C API functions that both set and delete objects 2015-12-08 00:03:20 +00:00
set.rst Issue #28496: Mark up constants 0, 1 and -1 that denote return values or 2016-10-27 21:41:19 +03:00
slice.rst bpo-27867: Add a porting guide for PySlice_GetIndicesEx(). (#1973) 2017-10-08 12:53:34 +03:00
stable.rst Add a link to PEP 384 in stable.rst 2016-01-28 12:42:26 +02:00
structures.rst bpo-29916: Include PyGetSetDef in C API extension documentation. (#831) 2017-09-15 19:25:27 +03:00
sys.rst bpo-29240: PEP 540: Add a new UTF-8 Mode (#855) 2017-12-13 12:29:09 +01:00
tuple.rst bpo-29918: Add missed "const" modifiers in C API documentation. (#846) 2017-03-30 10:01:03 +03:00
type.rst Clean up the docs of PyObject_IsSubclass and PyObject_IsInstance, and mention that they call the PEP 3119 methods. 2014-10-06 14:38:53 +02:00
typeobj.rst bpo-23699: Use a macro to reduce boilerplate code in rich comparison functions (GH-793) 2017-11-02 20:32:54 +10:00
unicode.rst bpo-30708: Check for null characters in PyUnicode_AsWideCharString(). (#2285) 2017-06-27 16:03:14 +03:00
utilities.rst Merged revisions 86134,86315-86316,86390,86424-86425,86428,86550,86561-86562,86564-86565,86705,86708,86713 via svnmerge from 2010-11-26 09:05:43 +00:00
veryhigh.rst bpo-30696: Fix the REPL looping endlessly when no memory (GH-4160) 2017-11-12 16:50:48 +01:00
weakref.rst demote this to a note 2011-05-31 21:27:41 -05:00