summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-26163: Frozenset hash improvement (#5194)Raymond Hettinger2018-01-162-0/+3
|
* bpo-14976: Reentrant simple queue (#3346)Antoine Pitrou2018-01-1512-12/+1125
| | | | Add a queue.SimpleQueue class, an unbounded FIFO queue with a reentrant C implementation of put().
* Implement the get_resource_reader() API for file system imports (#5168)Barry Warsaw2018-01-156-1258/+1351
|
* Make asyncio tests run when there's no SSL module (#5196)Yury Selivanov2018-01-151-3/+0
|
* bpo-31900: Fix localeconv() encoding for LC_NUMERIC (#4174)Victor Stinner2018-01-158-19/+151
| | | | | | | | * Add _Py_GetLocaleconvNumeric() function: decode decimal_point and thousands_sep fields of localeconv() from the LC_NUMERIC encoding, rather than decoding from the LC_CTYPE encoding. * Modify locale.localeconv() and "n" formatter of str.format() (for int, float and complex to use _Py_GetLocaleconvNumeric() internally.
* bpo-29240: Fix locale encodings in UTF-8 Mode (#5170)Victor Stinner2018-01-1512-505/+472
| | | | | | | | | | | | | | | | | | | | | | | | | | | Modify locale.localeconv(), time.tzname, os.strerror() and other functions to ignore the UTF-8 Mode: always use the current locale encoding. Changes: * Add _Py_DecodeLocaleEx() and _Py_EncodeLocaleEx(). On decoding or encoding error, they return the position of the error and an error message which are used to raise Unicode errors in PyUnicode_DecodeLocale() and PyUnicode_EncodeLocale(). * Replace _Py_DecodeCurrentLocale() with _Py_DecodeLocaleEx(). * PyUnicode_DecodeLocale() now uses _Py_DecodeLocaleEx() for all cases, especially for the strict error handler. * Add _Py_DecodeUTF8Ex(): return more information on decoding error and supports the strict error handler. * Rename _Py_EncodeUTF8_surrogateescape() to _Py_EncodeUTF8Ex(). * Replace _Py_EncodeCurrentLocale() with _Py_EncodeLocaleEx(). * Ignore the UTF-8 mode to encode/decode localeconv(), strerror() and time zone name. * Remove PyUnicode_DecodeLocale(), PyUnicode_DecodeLocaleAndSize() and PyUnicode_EncodeLocale() now ignore the UTF-8 mode: always use the "current" locale. * Remove _PyUnicode_DecodeCurrentLocale(), _PyUnicode_DecodeCurrentLocaleAndSize() and _PyUnicode_EncodeCurrentLocale().
* bpo-26330: Update shutil.disk_usage() documentation (GH-5184)Cheryl Sabella2018-01-151-1/+2
| | | | Clarify that on Windows, path must be a directory. On Unix, path can be a file or a directory.
* bpo-15221: Update os.path.is*() documentation (GH-5185)Cheryl Sabella2018-01-151-6/+9
| | | | | `os.path.is*()` can return False if the file can't be accessed. The behaviour is documented in details in `os.path.exists()`. Link to `os.path.exists()` from `os.path.is*()`.
* bpo-29476: Simplify set_add_entry() (#5175)Raymond Hettinger2018-01-141-2/+2
|
* Add itertools recipe for directly finding the n-th combination (#5161)Raymond Hettinger2018-01-132-0/+56
|
* Improve enum.Flag code example (GH-5167)Julian Kahnert2018-01-131-1/+1
| | | | The code example that demonstrate how to use enum.Flag was missing the import of enum.auto.
* bpo-32248: Introduce the concept of Loader.get_resource_reader() (GH-5108)Brett Cannon2018-01-124-13/+57
|
* bpo-31993: Do not use memoryview when pickle large strings. (#5154)Serhiy Storchaka2018-01-123-35/+36
| | | | | | PyMemoryView_FromMemory() created a memoryview referring to the internal data of the string. When the string is destroyed the memoryview become referring to a freed memory.
* bpo-32521: nis libtirpc (#5137)Christian Heimes2018-01-122-5/+14
| | | | | | glibc has removed Sun RPC. Use replacement libtirpc headers and library in nis module Signed-off-by: Christian Heimes <christian@python.org>
* bpo-32473: Improve ABCMeta._dump_registry() readability (GH-5091)yahya-abou-imran2018-01-122-1/+4
|
* OrderedDict import is no longer needed (#4890)Raymond Hettinger2018-01-121-2/+1
|
* Lexical Analysis ref doc: Fix a typo in the string concatenation internal ↵İsmail Arılık2018-01-121-1/+1
| | | | | | | link (GH-5157) In lexical analysis reference documentation, the internal link to the string literal concatenation section was written as`.. _string-catenation:`. Changed that to `.. _string-concatenation:`.
* bpo-31145: Use dataclasses to create a prioritization wrapper (#5153)Raymond Hettinger2018-01-122-0/+21
|
* bpo-32467: Let collections.abc.ValuesView inherit from Collection (#5152)Raymond Hettinger2018-01-124-4/+6
|
* bpo-31113: Get rid of recursion in the compiler for normal control flow. (#3015)Serhiy Storchaka2018-01-113-78/+110
|
* bpo-31993: Do not create frames for large bytes and str objects (#5114)Serhiy Storchaka2018-01-113-104/+97
| | | | | | | when serialize into memory buffer with C pickle implementations. This optimization already is performed when serialize into memory with Python pickle implementations or into a file with both implementations.
* bpo-29240: Ignore UTF-8 Mode in time module (#5148)Victor Stinner2018-01-114-8/+17
| | | | | | time.strftime() must use the current LC_CTYPE encoding, not UTF-8 if the UTF-8 mode is enabled. Add _PyUnicode_DecodeCurrentLocale() function.
* bpo-32320: Add default value support to collections.namedtuple() (#4859)Raymond Hettinger2018-01-114-4/+93
|
* Fix obvious typos in docstrings (#5151)Raymond Hettinger2018-01-111-6/+7
|
* bpo-29240: readline now ignores the UTF-8 Mode (#5145)Victor Stinner2018-01-106-42/+125
| | | | | | | | | | | | Add new fuctions ignoring the UTF-8 mode: * _Py_DecodeCurrentLocale() * _Py_EncodeCurrentLocale() * _PyUnicode_DecodeCurrentLocaleAndSize() * _PyUnicode_EncodeCurrentLocale() Modify the readline module to use these functions. Re-enable test_readline.test_nonascii().
* Fix when parsing tz offsets microseconds shorter than 6 (#4781)Mario Corchero2018-01-092-1/+7
| | | | As the remainder was directly parsed as an int, strings like .600 were parsed as 600 microseconds rather than milliseconds.
* bpo-24340: Fix estimation of the code stack size. (#5076)Serhiy Storchaka2018-01-096-1161/+1504
|
* bpo-32493: Not only AIX, but FreeBSD has uuid_create support (#5089)David Carlier2018-01-095-9/+9
| | | Allow building the _uuid extension module on FreeBSD and OpenBSD.
* Post-release version bump to a4+Ned Deily2018-01-092-3/+3
|
* Fix several changelog items to use PEP markup.Ned Deily2018-01-091-3/+3
|
* Merge tag 'v3.7.0a4'Ned Deily2018-01-0988-355/+1123
|\
| * Bump to 3.7.0a4v3.7.0a4Ned Deily2018-01-092-4/+4
| |
| * Update docs for 3.7.0a4Ned Deily2018-01-0986-351/+1119
| |
* | bpo-32507: Change Windows install to include app-local UCRT (#5119)Steve Dower2018-01-0931-200/+71
|/
* bpo-32248: install new test_importlib directories (#5138)Ned Deily2018-01-091-5/+20
|
* bpo-31975 (PEP 565): Show DeprecationWarning in __main__ (GH-4458)Nick Coghlan2018-01-0810-124/+333
| | | | | | | | | | | | | - primary change is to add a new default filter entry for 'default::DeprecationWarning:__main__' - secondary change is an internal one to cope with plain strings in the warning module's internal filter list (this avoids the need to create a compiled regex object early on during interpreter startup) - assorted documentation updates, including many more examples of configuring the warnings settings - additional tests to ensure that both the pure Python and the C accelerated warnings modules have the expected default configuration
* bpo-32506: Change dataclasses from OrderedDict to plain dict. (gh-5131)Eric V. Smith2018-01-072-8/+10
|
* Fix version in AppVeyor config (GH-5124)Zachary Ware2018-01-071-1/+1
|
* bpo-31802: Fix importing native path module before importing os. (#4017)Serhiy Storchaka2018-01-075-32/+42
|
* bpo-30579: Allow TracebackType creation and tb_next mutation from Python ↵Nathaniel J. Smith2018-01-074-26/+226
| | | | | | | | | | | | | | | | | (GH-4793) Third party projects may wish to hide their own internal machinery in order to present more comprehensible tracebacks to end users (e.g. Jinja2 and Trio both do this). Previously such projects have had to rely on ctypes to do so: https://github.com/pallets/jinja/blob/fe3dadacdf4cf411d0a5b6bbd4d5234697a28af2/jinja2/debug.py#L345 https://github.com/python-trio/trio/blob/1e86b1aee8c0c759f6f239ae53a05d0d3963c629/trio/_core/_multierror.py#L296 This provides a Python level API for creating and modifying real Traceback objects, allowing tracebacks to be edited at runtime. Patch by Nathaniel Smith.
* Fix dataclasses docstring typo. (gh-5118)Eric V. Smith2018-01-071-2/+2
|
* Kill the AppVeyor file whitelist (GH-5121)Zachary Ware2018-01-071-17/+0
| | | It's more trouble than it's worth, since AppVeyor only checks the HEAD commit of a PR rather than the full diff against the base branch to decide which files changed.
* bpo-32282: Remove unnecessary check for `VersionHelpers.h` in ↵Max Bélanger2018-01-072-10/+2
| | | | `socketmodule.c` on Windows
* bpo-32279: Add additional params to make_dataclass(), pass through to ↵Eric V. Smith2018-01-063-3/+26
| | | | dataclass(). (gh-5117)
* bpo-32278: Allow dataclasses.make_dataclass() to omit type information. ↵Eric V. Smith2018-01-063-6/+30
| | | | (gh-5115)
* bpo-32499: Add dataclasses.is_dataclass(obj), which returns True if obj is a ↵Eric V. Smith2018-01-063-22/+36
| | | | dataclass or an instance of one. (#5113)
* bpo-31993: Do not allocate large temporary buffers in pickle dump. (#4353)Olivier Grisel2018-01-066-50/+297
| | | | | | | | | | | | | | | | | The picklers do no longer allocate temporary memory when dumping large bytes and str objects into a file object. Instead the data is directly streamed into the underlying file object. Previously the C implementation would buffer all content and issue a single call to file.write() at the end of the dump. With protocol 4 this behavior has changed to issue one call to file.write() per frame. The Python pickler with protocol 4 now dumps each frame content as a memoryview to an IOBytes instance that is never reused and the memoryview is no longer released after the call to write. This makes it possible for the file object to delay access to the memoryview of previous frames without forcing any additional memory copy as was already possible with the C pickler.
* Cleanup grammar in unittest.mock.seal documentation (#5107)Paul Ganssle2018-01-061-4/+4
|
* bpo-32206: Pdb can now run modules (GH-4752)Mario Corchero2018-01-065-21/+184
| | | | | | | | | | | Add a new argument "-m" to the pdb module to allow users to run `python -m pdb -m my_module_name`. This relies on private APIs in the runpy module to work, but we can get away with that since they're both part of the standard library and can be updated together if the runpy internals get refactored.
* bpo-29137: Remove fpectl module (#4789)Nathaniel J. Smith2018-01-0614-865/+19
| | | | | This module has never been enabled by default, never worked correctly on x86-64, and caused ABI problems that caused C extension compatibility. See bpo-29137 for details/discussion.