]>
granicus.if.org Git - python/log
Lysandros Nikolaou [Thu, 14 Feb 2019 23:35:25 +0000 (00:35 +0100)]
bpo-30410: Documentation of sys.stdin/out/err update to reflect change in 3.6 (GH-10264)
Documentation of sys.stdin/out/err update to reflect change in 3.6 on Windows to use UTF-8.
Wording by Eryk Sun and Paul Moore.
https://bugs.python.org/issue30410
kk [Thu, 14 Feb 2019 19:52:30 +0000 (03:52 +0800)]
Doc: Fix example in contextlib asynccontextmanager document (GH-8111)
Michael Felt [Thu, 14 Feb 2019 18:22:35 +0000 (19:22 +0100)]
bpo-35633: test_lockf() fails with "PermissionError: [Errno 13] Permission denied" on AIX (GH-11424)
[bpo-35633](https://bugs.python.org/issue35633): Fix a test regression introduced with [bpo-35189](https://bugs.python.org/issue35189) (PEP 475: fnctl functions are not retried if interrupted (EINTR)).
Not only a blocking IO error needs to be ignored - permission errors also need to be ignored.
p.s. - iirc as a "test" only correction a NEWS item is not required. If this is not correct - just mention, and I'll add a NEWS blurb.
https://bugs.python.org/issue35633
Paul Monson [Thu, 14 Feb 2019 16:31:30 +0000 (08:31 -0800)]
bpo-35976: Enable Windows projects to build with platform ARM32 (GH-11825)
This change adds the necessary items to the build projects to avoid erroring out right at the start. It does not add _support_ for targeting Windows on ARM32, but is a necessary prerequisite for adding it.
Zackery Spytz [Thu, 14 Feb 2019 07:43:17 +0000 (00:43 -0700)]
closes bpo-35991: Fix a potential double free in Modules/_randommodule.c. (GH-11849)
Kevin Mai-Husan Chia [Thu, 14 Feb 2019 02:39:25 +0000 (10:39 +0800)]
Fix typo: equivalent code of `async with cond` (GH-11681)
Susan Su [Thu, 14 Feb 2019 02:22:29 +0000 (18:22 -0800)]
bpo-35500: align expected and actual calls on mock.assert_called_with error message. (GH-11804)
Nina Zakharenko [Wed, 13 Feb 2019 23:21:17 +0000 (15:21 -0800)]
bpo-35887: Add make regen-importlib step to importlib._bootstrap docstring (GH-11777)
Victor Stinner [Wed, 13 Feb 2019 11:31:56 +0000 (12:31 +0100)]
bpo-35961: Fix a crash in slice_richcompare() (GH-11830)
Fix a crash in slice_richcompare(): use strong references rather than
stolen references for the two temporary internal tuples.
The crash (or assertion error) occurred if a garbage collection
occurred during slice_richcompare(), especially while calling
PyObject_RichCompare(t1, t2, op).
Cheryl Sabella [Wed, 13 Feb 2019 11:25:10 +0000 (06:25 -0500)]
bpo-18283: Add support for bytes to shutil.which (GH-11818)
Raymond Hettinger [Wed, 13 Feb 2019 10:04:17 +0000 (02:04 -0800)]
Be consistent about the use of from-imports in random module (GH-11837)
Minor code clean-up.
Anthony Sottile [Wed, 13 Feb 2019 04:15:54 +0000 (23:15 -0500)]
Remove stray quote in os.replace docstring. (GH-11556)
Pablo Galindo [Wed, 13 Feb 2019 00:45:53 +0000 (00:45 +0000)]
Fix potential memory leak in parsetok.c (GH-11832)
Matěj Cepl [Tue, 12 Feb 2019 18:30:19 +0000 (19:30 +0100)]
bpo-35505: Skip test_imap4_host_default_value if localhost listens on IMAP port (GH-11823)
Make test_imap4_host_default_value independent on whether the
local IMAP server is running.
Alexey Izbyshev [Tue, 12 Feb 2019 16:06:43 +0000 (19:06 +0300)]
bpo-35972: _xxsubinterpreters: Fix potential integer truncation on 32-bit in channel_send() (gh-11822)
Christopher Hunt [Tue, 12 Feb 2019 11:50:49 +0000 (06:50 -0500)]
bpo-35960: Fix dataclasses.field throwing away empty metadata. (GH-11815)
Rémi Lapeyre [Tue, 12 Feb 2019 00:37:24 +0000 (01:37 +0100)]
bpo-35918: Remove broken has_key method and add test (#11819)
Guido van Rossum [Mon, 11 Feb 2019 19:34:50 +0000 (11:34 -0800)]
Complete switch cases in symtable.c; fixes bpo-35963 (GH-11821)
Pablo Galindo [Mon, 11 Feb 2019 17:29:00 +0000 (17:29 +0000)]
bpo-35378: Fix multiprocessing.Pool references (GH-11627)
Changes in this commit:
1. Use a _strong_ reference between the Pool and associated iterators
2. Rework PR #8450 to eliminate a cycle in the Pool.
There is no test in this commit because any test that automatically tests this behaviour needs to eliminate the pool before joining the pool to check that the pool object is garbaged collected/does not hang. But doing this will potentially leak threads and processes (see https://bugs.python.org/issue35413).
Guido van Rossum [Mon, 11 Feb 2019 16:10:42 +0000 (08:10 -0800)]
bpo-35766 follow-up: Add an error check to new_type_comment() (#11766)
If PyUnicode_DecodeUTF8() returns NULL, PyArena_AddPyObject() would crash.
Found by @msullivan for https://github.com/python/typed_ast/pull/93.
Eivind Teig [Mon, 11 Feb 2019 10:47:09 +0000 (11:47 +0100)]
bpo-22062: Updated docstring and documentation for pathlib (GH-8519)
Original patch by Mike Short
https://bugs.python.org/issue22062
Julien Palard [Sun, 10 Feb 2019 21:27:12 +0000 (22:27 +0100)]
Doc sidebar: 3.6 has moved to security-fix mode. (GH-11810)
Pablo Galindo [Sun, 10 Feb 2019 20:37:07 +0000 (20:37 +0000)]
Fix compiler warning about non initialised variable (GH-11806)
Pablo Galindo [Sun, 10 Feb 2019 19:56:58 +0000 (19:56 +0000)]
Fix division by 0 when checking for overflow in math.prod (GH-11808)
Ivan Levkivskyi [Sun, 10 Feb 2019 15:39:49 +0000 (15:39 +0000)]
Fix compiler warnings about end_col_offset and end_lineno (GH-11735)
Pablo Galindo [Sun, 10 Feb 2019 00:21:37 +0000 (00:21 +0000)]
Fix broken :ref: in asyncio docs (GH-11805)
Pablo Galindo [Sat, 9 Feb 2019 17:35:05 +0000 (17:35 +0000)]
Make sure the BaseManager in test_multiprocessing is cleaned up correctly (GH-11653)
Pablo Galindo [Sat, 9 Feb 2019 17:08:49 +0000 (17:08 +0000)]
Do not retain references to processes and managers in TestSyncManagerTypes (GH-11801)
Keeping references to processes and managers between tests makes them count as dangling processes.
Terry Jan Reedy [Sat, 9 Feb 2019 03:51:51 +0000 (22:51 -0500)]
bpo-35833: Revise IDLE doc for control codes sent to Shell. (GH-11799)
Add a code example block.
Raymond Hettinger [Sat, 9 Feb 2019 02:55:02 +0000 (18:55 -0800)]
lru_cache: Add more comments. Fix comment typos. Clarify a comment. (GH-11795)
Tim Peters [Fri, 8 Feb 2019 21:09:26 +0000 (15:09 -0600)]
Rework tuple hash tests. (GH-10161)
Add tooling that will useful in future updates, paying particular attention to difficult cases where only the upper bits on the input vary.
Neil Schemenauer [Fri, 8 Feb 2019 18:48:46 +0000 (10:48 -0800)]
bpo-35903: Use autoconfig to probe for shm_open() and shm_unlink(). (#11765)
Use autoconfig to probe for shm_open() and shm_unlink(). Set SHM_NEEDS_LIBRT if we must
link with librt to get the shm_* functions. Change setup.py to use the autoconfig defines. These
changes should make it more likely that _multiprocessing/posixshmem.c gets built correctly on
different platforms.
Raymond Hettinger [Fri, 8 Feb 2019 18:37:39 +0000 (10:37 -0800)]
Complete and neaten-up namedtuple's replacement of builtin function lookups with derefs (GH-11794)
Paul Ganssle [Fri, 8 Feb 2019 16:02:00 +0000 (11:02 -0500)]
Add What's New entry for date subclass behavior (#11790)
This was a backwards incompatible change and should be clearly noted.
Related bugs:
bpo-32417: https://bugs.python.org/issue32417
bpo-35364: https://bugs.python.org/issue35364
Fish [Thu, 7 Feb 2019 19:51:59 +0000 (14:51 -0500)]
bpo-35615: Fix crashes when copying a Weak{Key,Value}Dictionary. (GH-11384)
Protect dict iterations by wrapping them with _IterationGuard in the
following methods:
- WeakValueDictionary.copy()
- WeakValueDictionary.__deepcopy__()
- WeakKeyDictionary.copy()
- WeakKeyDictionary.__deepcopy__()
Pierre Glaser [Thu, 7 Feb 2019 19:36:48 +0000 (20:36 +0100)]
bpo-35911: add cell constructor (GH-11771)
Add a cell constructor, expose the cell type in the types module.
Jason R. Coombs [Thu, 7 Feb 2019 13:22:45 +0000 (08:22 -0500)]
bpo-24209: In http.server script, rely on getaddrinfo to bind to preferred address based on the bind parameter. (#11767)
In http.server script, rely on getaddrinfo to bind to preferred address based on the bind parameter.
As a result, now IPv6 is used as the default (including IPv4 on dual-stack systems). Enhanced tests.
Giampaolo Rodola [Thu, 7 Feb 2019 11:03:11 +0000 (03:03 -0800)]
bpo-35917: Test multiprocessing manager classes and shareable types (GH-11772)
multiprocessing: provide unittests for manager classes and shareable types
Pablo Galindo [Thu, 7 Feb 2019 07:04:02 +0000 (07:04 +0000)]
bpo-35606: Implement math.prod (GH-11359)
Mariatta [Wed, 6 Feb 2019 20:45:03 +0000 (12:45 -0800)]
Fix url to core-mentorship mailing list (GH-11775)
Harmandeep Singh [Tue, 5 Feb 2019 10:16:13 +0000 (15:46 +0530)]
bpo-20001: update pathlib landing image (GH-11304)
Inada Naoki [Tue, 5 Feb 2019 08:05:43 +0000 (17:05 +0900)]
email: use dict instead of OrderedDict (GH-11709)
Inada Naoki [Tue, 5 Feb 2019 08:04:40 +0000 (17:04 +0900)]
asyncio: use dict instead of OrderedDict (GH-11710)
Raymond Hettinger [Tue, 5 Feb 2019 07:32:55 +0000 (23:32 -0800)]
Fix typo (micro->nano) (GH-11759)
Steve Dower [Tue, 5 Feb 2019 01:15:13 +0000 (17:15 -0800)]
bpo-35299: Fixed sysconfig and distutils during PGO profiling (GH-11744)
Nina Zakharenko [Tue, 5 Feb 2019 00:56:26 +0000 (16:56 -0800)]
bpo-35321: Set the spec origin to frozen in frozen modules (#11732)
* bpo-35321: Set the spec origin to frozen in frozen modules
This fix correctly sets the spec origin to
"frozen" for the _frozen_importlib module. Note that the
origin was already correctly set in _frozen_importlib_external.
* 📜🤖 Added by blurb_it.
Paul Ganssle [Mon, 4 Feb 2019 19:42:04 +0000 (14:42 -0500)]
bpo-32417: Make timedelta arithmetic respect subclasses (#10902)
* Make timedelta return subclass types
Previously timedelta would always return the `date` and `datetime`
types, regardless of what it is added to. This makes it return
an object of the type it was added to.
* Add tests for timedelta arithmetic on subclasses
* Make pure python timedelta return subclass types
* Add test for fromtimestamp with tz argument
* Add tests for subclass behavior in now
* Add news entry.
Fixes:
bpo-32417
bpo-35364
* More descriptive variable names in tests
Addresses Victor's comments
Łukasz Langa [Mon, 4 Feb 2019 08:39:24 +0000 (09:39 +0100)]
Post 3.8.0a1
Łukasz Langa [Mon, 4 Feb 2019 08:30:59 +0000 (09:30 +0100)]
Merge tag 'v3.8.0a1'
Python 3.8.0a1
Steve Dower [Mon, 4 Feb 2019 07:19:38 +0000 (23:19 -0800)]
bpo-35872 and bpo-35873: Clears __PYVENV_LAUNCHER__ variable (GH-11745)
After reading __PYVENV_LAUNCHER__ we now set sys._base_executable value for later use.
Make the same changes for macOS to avoid extra platform checks.
Steve Dower [Mon, 4 Feb 2019 07:08:18 +0000 (23:08 -0800)]
bpo-35692: pathlib no longer raises when checking file and directory existence on drives that are not ready (GH-11746)
Łukasz Langa [Sun, 3 Feb 2019 13:17:38 +0000 (14:17 +0100)]
v3.8.0a1
Łukasz Langa [Sun, 3 Feb 2019 13:04:12 +0000 (14:04 +0100)]
[pydoc] Regenerate topics for v3.8.0a1
Łukasz Langa [Sun, 3 Feb 2019 13:02:52 +0000 (14:02 +0100)]
[blurb] v3.8.0a1
Raymond Hettinger [Sun, 3 Feb 2019 06:54:56 +0000 (22:54 -0800)]
bpo-35884: Add variable access benchmarking script (GH-11725)
Ned Deily [Sun, 3 Feb 2019 05:41:20 +0000 (00:41 -0500)]
Update macOS installer Welcome and ReadMe for 3.8 (GH-11748)
Minmin Gong [Sun, 3 Feb 2019 04:26:55 +0000 (20:26 -0800)]
bpo-35890 : Fix some API calling consistency (GH-11742)
Unicode version of Windows APIs are used in places, but not for GetVersionEx in Python/sysmodule.c
The wcstok_s is called on Windows in Modules/main.c and PC/launcher.c, but not in Python/pathconfig.c
Steve Dower [Sat, 2 Feb 2019 22:36:23 +0000 (14:36 -0800)]
bpo-34691: Compile _contextvars module into main Python library (GH-11741)
Mark Becwar [Sat, 2 Feb 2019 21:08:23 +0000 (16:08 -0500)]
bpo-29734: nt._getfinalpathname handle leak (GH-740)
Make sure that failure paths call CloseHandle outside of the function that failed
Shiva Saxena [Sat, 2 Feb 2019 19:21:04 +0000 (00:51 +0530)]
bpo-32560: inherit the py launcher's STARTUPINFO (GH-9000)
https://bugs.python.org/issue32560
Stefan Krah [Sat, 2 Feb 2019 17:57:41 +0000 (18:57 +0100)]
bpo-35845: Add order={'C', 'F', 'A'} parameter to memoryview.tobytes(). (#11730)
Tony Roberts [Sat, 2 Feb 2019 17:16:42 +0000 (18:16 +0100)]
bpo-33895: Relase GIL while calling functions that acquire Windows loader lock (GH-7789)
LoadLibrary, GetProcAddress, FreeLibrary and GetModuleHandle acquire the system loader lock. Calling these while holding the GIL will cause a deadlock on the rare occasion that another thread is detaching and needs to destroy its thread state at the same time.
Tzu-ping Chung [Sat, 2 Feb 2019 17:13:23 +0000 (01:13 +0800)]
bpo-1104: msilib.SummaryInfo.GetProperty() truncates the string by one character (GH-4517)
Add one char to MsiSummaryInfoGetProperty() output
Based on the patch in bpo-1104 by Anthony Tuininga (atuining) and Mark McMahon (markm).
native-api [Sat, 2 Feb 2019 16:22:55 +0000 (19:22 +0300)]
bpo-33316: PyThread_release_lock always fails (GH-6541)
Use correct interpretation of return value from APIs.
Cheryl Sabella [Sat, 2 Feb 2019 14:37:39 +0000 (09:37 -0500)]
bpo-26256: Document algorithm speed for the Decimal module. (#4808)
Davin Potts [Sat, 2 Feb 2019 04:52:23 +0000 (22:52 -0600)]
bpo-35813: Added shared_memory submodule of multiprocessing. (#11664)
Added shared_memory submodule to multiprocessing in time for first alpha with cross-platform tests soon to follow.
Guido van Rossum [Fri, 1 Feb 2019 23:28:13 +0000 (15:28 -0800)]
bpo-35879: Fix type comment leaks (GH-11728)
* Fix leak for # type: ignore
* Fix the type comment leak
Emily Morehouse [Fri, 1 Feb 2019 22:27:38 +0000 (15:27 -0700)]
bpo-35877: Add test for while loop named expression without parentheses (GH-11726)
Xtreak [Fri, 1 Feb 2019 21:40:16 +0000 (03:10 +0530)]
bpo-35877: Make parenthesis optional for named expression in while statement (GH-11724)
* Add parenthesis optional in named expressions for while statement
* Add NEWS entry
Amador Pahim [Fri, 1 Feb 2019 20:38:57 +0000 (21:38 +0100)]
bpo-35864: fix namedtuple._asdict() docstring (GH-11720)
Joannah Nanjekye [Fri, 1 Feb 2019 19:58:43 +0000 (22:58 +0300)]
bpo-35861: Fix SyntaxWarning in test_named_expressions.py (GH-11722)
Guido van Rossum [Fri, 1 Feb 2019 19:37:34 +0000 (11:37 -0800)]
bpo-35766 follow-up: Kill half-support for FunctionType in PyAST_obj2mod (#11714)
See https://github.com/python/cpython/pull/11645/files/
229874c612df868e7ae3e997e159915f49d16542 #r252631862
https://bugs.python.org/issue35766
Victor Stinner [Fri, 1 Feb 2019 14:47:24 +0000 (15:47 +0100)]
bpo-35537: Fix function name in os.posix_spawnp() errors (GH-11719)
Victor Stinner [Fri, 1 Feb 2019 10:40:26 +0000 (11:40 +0100)]
bpo-35537: Skip test_start_new_session() of posix_spawn (GH-11718)
The test fails. Skip the test until a fix can be found.
Joannah Nanjekye [Fri, 1 Feb 2019 10:05:22 +0000 (13:05 +0300)]
bpo-35537: Add setsid parameter to os.posix_spawn() and os.posix_spawnp() (GH-11608)
Raymond Hettinger [Fri, 1 Feb 2019 06:13:43 +0000 (22:13 -0800)]
Speed-up argument parsing for common cases in deque.__init__()(GH-11717)
Raymond Hettinger [Thu, 31 Jan 2019 23:03:38 +0000 (15:03 -0800)]
Consistently move the misses update to just before the user function call (GH-11715)
Guido van Rossum [Thu, 31 Jan 2019 11:40:27 +0000 (03:40 -0800)]
bpo-35766: Merge typed_ast back into CPython (GH-11645)
Phil Jones [Thu, 31 Jan 2019 10:08:57 +0000 (10:08 +0000)]
doc: http: Fix enum name for status code 416 (GH-11689)
Raymond Hettinger [Thu, 31 Jan 2019 08:59:50 +0000 (00:59 -0800)]
bpo-35864: Replace OrderedDict with regular dict in namedtuple() (#11708)
* Change from OrderedDict to a regular dict
* Add blurb
Inada Naoki [Thu, 31 Jan 2019 08:53:48 +0000 (17:53 +0900)]
bpo-33504: fix wrong "versionchanged" (GH-11712)
Michael Selik [Thu, 31 Jan 2019 08:47:53 +0000 (00:47 -0800)]
bpo-34003: Use dict instead of OrderedDict in csv.DictReader (GH-8014)
Steve Dower [Wed, 30 Jan 2019 21:49:14 +0000 (13:49 -0800)]
bpo-35854: Fix EnvBuilder and --symlinks in venv on Windows (GH-11700)
Raymond Hettinger [Wed, 30 Jan 2019 21:30:20 +0000 (13:30 -0800)]
Document differences between random.choices() and random.choice(). (GH-11703)
João Matos [Wed, 30 Jan 2019 17:23:39 +0000 (17:23 +0000)]
bpo-35835: Add reference to Python 3.7 new breakpoint() function in pdb documentation. (GH-11691)
jdemeyer [Wed, 30 Jan 2019 15:49:39 +0000 (16:49 +0100)]
bpo-25592: Improve documentation of distutils data_files (GH-9767)
Raymond Hettinger [Wed, 30 Jan 2019 04:39:53 +0000 (20:39 -0800)]
Move float conversion into a macro. Apply to fsum (GH-11698)
Giampaolo Rodola [Tue, 29 Jan 2019 21:14:24 +0000 (22:14 +0100)]
subprocess: close pipes/fds by using ExitStack (GH-11686)
Close pipes/fds in subprocess by using ExitStack.
"In case of premature failure on X.Close() or os.close(X) the remaining pipes/fds will remain "open". Perhaps it makes sense to use contextlib.ExitStack."
- Rationale: https://github.com/python/cpython/pull/11575#discussion_r250288394
Andreas Schwab [Tue, 29 Jan 2019 16:16:10 +0000 (17:16 +0100)]
bpo-35847: RISC-V needs CTYPES_PASS_BY_REF_HACK (GH-11694)
This fixes the ctypes.test.test_structures.StructureTestCase test.
https://bugs.python.org/issue35847
Raymond Hettinger [Mon, 28 Jan 2019 21:59:56 +0000 (13:59 -0800)]
Fast path for int inputs to math.dist() and math.hypot() (GH-11692)
David H [Mon, 28 Jan 2019 09:31:19 +0000 (10:31 +0100)]
bpo-35701: Update doc for UUID weak referencing (GH-11621)
nu_no [Sun, 27 Jan 2019 22:07:47 +0000 (23:07 +0100)]
Fix typo: class declaration (GH-11678)
Nick Coghlan [Sun, 27 Jan 2019 16:21:11 +0000 (02:21 +1000)]
Clarify U-mode deprecation in open() (GH-11646)
The previous wording could be read as saying that universal
newlines mode itself was deprecated, when it's only the 'U'
character in the mode field that should be avoided.
The update also moves the description of the 'U' mode character
out of the mode table, as the longer explanation was overly
intrusive as a table entry and overshadowed the actually useful
mode characters.
Gregory P. Smith [Sat, 26 Jan 2019 23:19:11 +0000 (15:19 -0800)]
Fix docstr/comment typos in _use_posix_spawn(). (GH-11684)
Raymond Hettinger [Sat, 26 Jan 2019 08:02:00 +0000 (03:02 -0500)]
bpo-35780: Fix errors in lru_cache() C code (GH-11623)
Steve Dower [Fri, 25 Jan 2019 22:59:58 +0000 (14:59 -0800)]
bpo-35811: Avoid propagating venv settings when launching via py.exe (GH-11677)
Steve Dower [Fri, 25 Jan 2019 22:59:12 +0000 (14:59 -0800)]
bpo-35797: Fix default executable used by the multiprocessing module (GH-11676)
Windson yang [Fri, 25 Jan 2019 12:01:41 +0000 (20:01 +0800)]
bpo-34134: Advise to use imap or imap_unordered when handling long iterables. (gh-8324)
Ivan Levkivskyi [Fri, 25 Jan 2019 01:39:19 +0000 (01:39 +0000)]
bpo-35814: Allow same r.h.s. in annotated assignments as in normal ones (GH-11667)
Victor Stinner [Fri, 25 Jan 2019 00:49:53 +0000 (01:49 +0100)]
bpo-35224: Add support for NamedExpr to unparse.py (GH-11670)