summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-34925: Optimize common case for bisect() argument parsing (#9753)Raymond Hettinger2018-10-082-15/+40
|
* Add missing closing quote and trailing period in str.isidentifier() ↵Emanuele Gaifas2018-10-082-4/+4
| | | | | docstring (GH-9756) This rectifies commit ffc5a14d00db984c8e72c7b67da8a493e17e2c14.
* bpo-33014: Clarify str.isidentifier docstring (GH-6088)Sanyam Khurana2018-10-083-8/+19
| | | | | | * bpo-33014: Clarify str.isidentifier docstring * bpo-33014: Add code example in isidentifier documentation
* bpo-34901: add isolated (-I) flag to sys.flags (GH-9708)Danish Prakash2018-10-071-0/+4
| | | https://bugs.python.org/issue34901
* Correct grammar mistake in re.rst. (GH-9745)Andrés Delfino2018-10-061-1/+1
|
* bpo-34824: Fix a possible NULL pointer dereference in _ssl.c (GH-9606)Zackery Spytz2018-10-062-2/+9
| | | | | | | On failure, _PyBytes_Resize() will deallocate the bytes object and set "result" to NULL. https://bugs.python.org/issue34824
* bpo-34906: Doc: Fix typos (2) (GH-9735)Stéphane Wirtel2018-10-0638-63/+63
| | | Fix typos
* bpo-34910: Ensure that PyObject_Print() always returns -1 on error. (GH-9733)Zackery Spytz2018-10-062-2/+5
|
* bpo-34909: keep searching mixins until base class is found (GH-9737)Ethan Furman2018-10-062-3/+22
|
* bpo-34158: Documentation UTC offset update (GH-8377)Christophe Nanteuil2018-10-051-20/+21
| | | | | | | | | | | | | | | | | | | | | * Documentation of UTC offset update Since changes in the UTC offset that allows sub-minute offsets, the documentation needs update: - "%z" format code documentation update Karthikeyan Singaravelan commented on bugs.python.org: Added as part of 018d353c1c8c87767d2335cd884017c2ce12e045 and a fix regarding duplicate words for that part was added at bac2d5ba30339298db7d4caa9c8cd31d807cf081. Relevant format string at https://github.com/python/cpython/pull/2896/files#diff-25e2d173c84057d069b7890450714eddR214. Relevant test case with 6-digit string for microsecond : https://github.com/python/cpython/pull/2896/files#diff-acc40bec51c7de832de3361db3edae52R309. Table at https://docs.python.org/3.7/library/datetime.html#strftime-and-strptime-behavior could also be updated with microseconds being optional in the second column %z | UTC offset in the form ±HHMM[SS] (empty string if the object is naive). | (empty), +0000, -0400, +1030 - isoformat documentation update According to me, needs confirmation: Relevant format string at https://github.com/python/cpython/pull/4699/files#diff-25e2d173c84057d069b7890450714eddR176 Relevant test case at https://github.com/python/cpython/pull/4699/files#diff-25e2d173c84057d069b7890450714edd * From Martin Panter: some style improvment; From @pganssle: using f for fractional part of seconds in all file.
* bpo-34899: Fix a possible assertion failure due to int_from_bytes_impl() ↵Zackery Spytz2018-10-051-1/+1
| | | | | | | (GH-9705) The _PyLong_FromByteArray() call in int_from_bytes_impl() was unchecked.
* Fix a compiler warning added in bpo-34872. (GH-9722)Serhiy Storchaka2018-10-051-1/+1
|
* Use assertEqual() instead of assertEquals(). (GH-9721)Serhiy Storchaka2018-10-052-2/+2
| | | Fixes warnings in tests added in bpo-32117 and bpo-34603.
* bpo-34902: Fixes VM image for Azure Pipelines build (GH-9719)Steve Dower2018-10-052-2/+2
|
* Simplify flags checks in sre_compile.py. (GH-9718)Serhiy Storchaka2018-10-051-5/+5
| | | Flags SRE_FLAG_UNICODE and SRE_FLAG_ASCII are mutually exclusive.
* bpo-34825: Add more entries to os to pathlib reference table (GH-9608)Xtreak2018-10-051-20/+27
| | | | | | | | | | | | | | | | | | The added functions are as below : | os module | Pathlib | | ------------- | ------------- | | os.chmod | Path.chmod | | os.mkdir | Path.mkdir | | os.rename | Path.rename | | os.replace | Path.replace | | os.rmdir | Path.rmdir | | os.remove, os.unlink | Path.unlink | | os.path.samefile | Path.samefile | Thanks https://bugs.python.org/issue34825
* bpo-34906: Doc: Fix typos (GH-9712)Stéphane Wirtel2018-10-056-6/+6
|
* bpo-28441: Ensure `.exe` suffix in `sys.executable` on MinGW and Cygwin ↵E. M. Bray2018-10-052-0/+48
| | | | | | | | | | | | | | | | | | (GH-4348) This is needed to even the run the test suite on buildbots for affected platforms; e.g.: ``` ./python.exe ./Tools/scripts/run_tests.py -j 1 -u all -W --slowest --fail-env-changed --timeout=11700 -j2 /home/embray/src/python/test-worker/3.x.test-worker/build/python -u -W default -bb -E -W error::BytesWarning -m test -r -w -j 1 -u all -W --slowest --fail-env-changed --timeout=11700 -j2 Traceback (most recent call last): File "./Tools/scripts/run_tests.py", line 56, in <module> main(sys.argv[1:]) File "./Tools/scripts/run_tests.py", line 52, in main os.execv(sys.executable, args) PermissionError: [Errno 13] Permission denied make: *** [Makefile:1073: buildbottest] Error 1 ```
* Fix a typo ssl.py docstring (GH-9697)Matt Eaton2018-10-051-1/+1
|
* bpo-34871: inspect: Don't pollute sys.modules (GH-9696)INADA Naoki2018-10-042-1/+3
| | | https://bugs.python.org/issue34871
* bpo-34871: Fix two typos in test_inspect.py (GH-9698)Chih-Hsuan Yen2018-10-041-2/+2
| | | | | | `arg` is misspelled as `agr`. I noticed this when playing with https://bugs.python.org/issue34871 https://bugs.python.org/issue34871
* bpo-34740: Get rid of tp_getattro in ossaudiodev.oss_audio_device. (GH-9421)Serhiy Storchaka2018-10-041-35/+34
| | | Use tp_members and tp_getset instead.
* bpo-34739: Get rid of tp_getattro in xml.etree.ElementTree.XMLParser. (GH-9420)Serhiy Storchaka2018-10-041-24/+19
| | | Use tp_members and tp_getset instead.
* closes bpo-34869: Remove LDLAST. (GH-9667)Benjamin Peterson2018-10-043-14/+8
|
* bpo-34872: Fix self-cancellation in C implementation of asyncio.Task (GH-9679)Elvis Pranskevichus2018-10-033-3/+45
| | | | | | | | | | | | | | | | | The C implementation of asyncio.Task currently fails to perform the cancellation cleanup correctly in the following scenario. async def task1(): async def task2(): await task3 # task3 is never cancelled asyncio.current_task().cancel() await asyncio.create_task(task2()) The actuall error is a hardcoded call to `future_cancel()` instead of calling the `cancel()` method of a future-like object. Thanks to Vladimir Matveev for noticing the code discrepancy and to Yury Selivanov for coming up with a pathological scenario.
* bpo-34879: Fix a possible null pointer dereference in bytesobject.c (GH-9683)Zackery Spytz2018-10-032-1/+3
| | | | | formatfloat() was not checking if PyBytes_FromStringAndSize() failed, which could lead to a null pointer dereference in _PyBytes_FormatEx().
* Make it clear that the msg argument to ↵Benjamin Peterson2018-10-031-3/+3
| | | | | assertWarns/assertWarnsRegex/assertRaisesRegex is keyword-only. (GH-9680) A follow up to be4e5b89204283a62e369439025f00362d0424f6.
* bpo-34172: multiprocessing.Pool leaks resources after being deleted (GH-8450)tzickel2018-10-023-24/+57
| | | Fix a reference issue inside multiprocessing.Pool that caused the pool to remain alive if it was deleted without being closed or terminated explicitly.
* bpo-34728: Fix asyncio tests to run under "-Werror" (GH-9661)Yury Selivanov2018-10-0214-206/+192
|
* Remove recent from logging cookbook (GH-9636)Cheryl Sabella2018-10-021-3/+2
|
* closes bpo-34862: Guard definition of convert_sched_param with ↵William Orr2018-10-022-7/+9
| | | | | | POSIX_SPAWN_SETSCHEDULER. (GH-9658) Fixes broken build on OpenBSD-current.
* Make it clear that the msg argument to assertRaises is keyword-only. (GH-9670)Benjamin Peterson2018-10-021-1/+1
|
* closes bpo-34868: Improve error message with '_' is combined with an invalid ↵Benjamin Peterson2018-10-022-8/+12
| | | | type specifier. (GH-9666)
* bpo-31865: Fix a couple of typos in the html.unescape() docs. (GH-9662)Ezio Melotti2018-10-021-1/+1
|
* bpo-30167: Add test for module.__cached__ is None (GH-7617)INADA Naoki2018-10-011-0/+11
|
* bpo-34476: Document that asyncio.sleep() always suspends. (#9643)Hrvoje Nikšić2018-10-011-0/+3
|
* bpo-30156: Remove property_descr_get() optimization (GH-9541)Victor Stinner2018-10-012-28/+9
| | | | | | | | | | | | | | | | property_descr_get() uses a "cached" tuple to optimize function calls. But this tuple can be discovered in debug mode with sys.getobjects(). Remove the optimization, it's not really worth it and it causes 3 different crashes last years. Microbenchmark: ./python -m perf timeit -v \ -s "from collections import namedtuple; P = namedtuple('P', 'x y'); p = P(1, 2)" \ --duplicate 1024 "p.x" Result: Mean +- std dev: [ref] 32.8 ns +- 0.8 ns -> [patch] 40.4 ns +- 1.3 ns: 1.23x slower (+23%)
* Fix name of argument in docs for functools.reduce(). (#9634)Brendan Jurd2018-10-011-6/+6
|
* bpo-34850: Replace is with == in idlelib.iomenu (GH-9649)Terry Jan Reedy2018-09-301-2/+2
| | | Patch by Serhiy Storchaka (in PR #9642).
* bpo-34854: Fix compiling string annotations containing lambdas. (GH-9645)Serhiy Storchaka2018-09-303-5/+11
| | | | | | | | | | * Compiling a string annotation containing a lambda with keyword-only argument without default value caused a crash. * Remove the final "*" (it is incorrect syntax) in the representation of lambda without *args and keyword-only arguments when compile from AST. * Improve the representation of lambda without arguments.
* bpo-34849: Don't log wating for selector.select in asyncio loop iteration ↵Andrew Svetlov2018-09-303-47/+4
| | | | | | | | | | (GH-9641) The waiting is pretty normal for any asyncio program, logging its time just adds a noise to logs without any useful information provided. https://bugs.python.org/issue34849
* Speed-up math.dist() by 30% (GH-9628)Raymond Hettinger2018-09-292-6/+12
|
* bpo-27351: Fix ConfigParser.read() documentation and docstring (GH-8123)Zackery Spytz2018-09-292-9/+10
| | | Switch "list" with "iterable" to match with the implementation.
* bpo-31370: Remove references to threadless builds (#8805)Zackery Spytz2018-09-294-19/+10
| | | Support for threadless builds was removed in a6a4dc81.
* Fix astuple in dataclasses documentation (GH-9631)방성범 (Bang Seongbeom)2018-09-291-1/+1
|
* Fix incorrect error handling in _pickle.Unpickler.__init__() (GH-9630)Zackery Spytz2018-09-291-1/+1
| | | | _pickle.Unpickler.__init__() should return -1 if Pdata_New() fails, not 1.
* bpo-34797: Convert heapq to the argument clinic (GH-9560)Pablo Galindo2018-09-282-67/+296
|
* bpo-34687: Update asyncio doc for ProactorEventLoop (GH-9623)Victor Stinner2018-09-283-17/+0
| | | | | | | | | | Since ProactorEventLoop is now the default in 3.8, remove examples using it explicitly on Windows. https://bugs.python.org/issue34687
* bpo-34521: Fix tests in test_multiprocessing_spawn to use correctly ↵Pablo Galindo2018-09-281-1/+1
| | | | | | | | | | | | | | | | CMSG_SPACE (GH-9613) After some failures in AMD64 FreeBSD CURRENT Debug 3.x buildbots regarding tests in test_multiprocessing_spawn and after examining similar failures in test_socket, some errors in the calculation of ancillary data buffers were found in multiprocessing.reduction. CMSG_LEN() can often be used as the buffer size for recvmsg() to receive a single item of ancillary data, but RFC 3542 requires portable applications to use CMSG_SPACE() and thus include space for padding, even when the item will be the last in the buffer. The failures we experience are due to the usage of CMSG_LEN() instead of CMSG_SPACE().
* bpo-34736: improve error message for invalid length b64decode inputs (GH-9563)Tal Einat2018-09-282-4/+12
| | | | | | | | Improvements: 1. Include the number of valid data characters in the error message. 2. Mention "number of data characters" rather than "length". https://bugs.python.org/issue34736