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
allocation.rst
apiabiversion.rst
arg.rst bpo-29918: Add missed "const" modifiers in C API documentation. (#846) 2017-03-30 10:01:03 +03:00
bool.rst
buffer.rst bpo-31754: Fix type of 'itemsize' in PyBuffer_FillContiguousStrides (GH-3993) 2017-10-15 10:31:36 +03:00
bytearray.rst
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
code.rst [Issue 15476] Make "code object" its own entry in the index 2016-06-02 19:26:51 -04:00
codec.rst
complex.rst
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
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
float.rst
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
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
iterator.rst
list.rst
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
object.rst Uniformize argument names of "call" functions 2016-12-06 16:27:24 +01:00
objimpl.rst
refcounting.rst
reflection.rst
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
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
veryhigh.rst bpo-30696: Fix the REPL looping endlessly when no memory (GH-4160) 2017-11-12 16:50:48 +01:00
weakref.rst