cpython/Objects
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
..
clinic bpo-20047: Make bytearray methods partition() and rpartition() rejecting (#4158) 2017-10-29 02:11:54 +03:00
stringlib bpo-31338 (#3374) 2017-09-14 18:13:16 -07:00
README
abstract.c bpo-28280: Make PyMapping_Keys(), PyMapping_Values() and PyMapping_Items() always return a list (#3840) 2017-10-08 11:17:46 +03:00
accu.c Replace KB unit with KiB (#4293) 2017-11-08 14:44:44 -08:00
boolobject.c
bytearrayobject.c Add the const qualifier to "char *" variables that refer to literal strings. (#4370) 2017-11-11 13:06:26 +02:00
bytes_methods.c
bytesobject.c bpo-23699: Use a macro to reduce boilerplate code in rich comparison functions (GH-793) 2017-11-02 20:32:54 +10:00
call.c bpo-31835: Optimize also FASTCALL using __future__ (#4087) 2017-10-25 05:26:17 -07:00
capsule.c
cellobject.c bpo-23699: Use a macro to reduce boilerplate code in rich comparison functions (GH-793) 2017-11-02 20:32:54 +10:00
classobject.c Add the const qualifier to "char *" variables that refer to literal strings. (#4370) 2017-11-11 13:06:26 +02:00
codeobject.c bpo-32176: Set CO_NOFREE in the code object constructor (GH-4675) 2017-12-03 11:12:20 +10:00
complexobject.c bpo-31979: Simplify transforming decimals to ASCII (#4336) 2017-11-13 21:23:48 +02:00
descrobject.c bpo-23699: Use a macro to reduce boilerplate code in rich comparison functions (GH-793) 2017-11-02 20:32:54 +10:00
dict-common.h
dictnotes.txt
dictobject.c bpo-31572: Get rid of _PyObject_HasAttrId() in dict and OrderedDict. (#3728) 2017-11-11 16:19:56 +02:00
enumobject.c bpo-31579: Fixed a possible leak in enumerate() with large indices. (#3753) 2017-09-26 08:14:58 +03:00
exceptions.c bpo-30399: Get rid of trailing comma in the repr of BaseException. (#1650) 2017-11-15 17:53:28 +02:00
fileobject.c
floatobject.c bpo-31979: Simplify transforming decimals to ASCII (#4336) 2017-11-13 21:23:48 +02:00
frameobject.c Move exc state to generator. Fixes bpo-25612 (#1773) 2017-10-22 23:41:51 +02:00
funcobject.c
genobject.c Add the const qualifier to "char *" variables that refer to literal strings. (#4370) 2017-11-11 13:06:26 +02:00
iterobject.c
listobject.c bpo-32137: The repr of deeply nested dict now raises a RecursionError (#4570) 2017-12-03 22:12:11 +02:00
listsort.txt
lnotab_notes.txt
longobject.c PyLong_FromString(): fix Coverity CID 1424951 (#4738) 2017-12-08 00:06:55 +01:00
memoryobject.c
methodobject.c
moduleobject.c bpo-31492: Fix assertion failures in case of a module with a bad __name__ attribute. (#3620) 2017-09-19 14:23:01 +03:00
namespaceobject.c bpo-31655: Validate keyword names in SimpleNamespace constructor. (#3909) 2017-10-07 22:59:35 +03:00
object.c bpo-32137: The repr of deeply nested dict now raises a RecursionError (#4570) 2017-12-03 22:12:11 +02:00
obmalloc.c bpo-32241: Add the const qualifire to declarations of umodifiable strings. (#4748) 2017-12-12 13:55:04 +02:00
odictobject.c bpo-31572: Get rid of _PyObject_HasAttrId() in dict and OrderedDict. (#3728) 2017-11-11 16:19:56 +02:00
rangeobject.c
setobject.c
sliceobject.c
structseq.c
tupleobject.c bpo-32137: The repr of deeply nested dict now raises a RecursionError (#4570) 2017-12-03 22:12:11 +02:00
typeobject.c bpo-31506: Improve the error message logic for class instantiation (GH-4740) 2017-12-10 10:14:22 +10:00
typeslots.inc
typeslots.py
unicodectype.c
unicodeobject.c bpo-29240: PEP 540: Add a new UTF-8 Mode (#855) 2017-12-13 12:29:09 +01:00
unicodetype_db.h
weakrefobject.c

README

Source files for various builtin objects