summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-34962: make doctest in Doc/ now passes, and is enforced in CI (GH-9806)Stéphane Wirtel2018-10-129-73/+218
|
* Fix an incorrect check in compiler_try_except(). (GH-9810)Zackery Spytz2018-10-121-1/+2
|
* Fix a possible decref of a borrowed reference in symtable.c. (GH-9786)Zackery Spytz2018-10-111-2/+4
|
* bpo-34922: Fix integer overflow in the digest() and hexdigest() methods ↵Serhiy Storchaka2018-10-113-0/+20
| | | | | (GH-9751) for the SHAKE algorithm in the hashlib module.
* Micro-optimize list index range checks (GH-9784)Raymond Hettinger2018-10-111-5/+18
|
* bpo-34576 warn users on security for http.server (#9720)Felipe Rodrigues2018-10-111-0/+8
| | | | It was proposed to add an warning for http.server regarding security issues. The wording was provided at bpo-26005 by @orsenthil
* bpo-34022: Stop forcing of hash-based invalidation with SOURCE_DATE_EPOCH ↵Elvis Pranskevichus2018-10-108-30/+161
| | | | | | | | | | | | | | | | | | | | (GH-9607) Unconditional forcing of ``CHECKED_HASH`` invalidation was introduced in 3.7.0 in bpo-29708. The change is bad, as it unconditionally overrides *invalidation_mode*, even if it was passed as an explicit argument to ``py_compile.compile()`` or ``compileall``. An environment variable should *never* override an explicit argument to a library function. That change leads to multiple test failures if the ``SOURCE_DATE_EPOCH`` environment variable is set. This changes ``py_compile.compile()`` to only look at ``SOURCE_DATE_EPOCH`` if no explicit *invalidation_mode* was specified. I also made various relevant tests run with explicit control over the value of ``SOURCE_DATE_EPOCH``. While looking at this, I noticed that ``zipimport`` does not work with hash-based .pycs _at all_, though I left the fixes for subsequent commits.
* bpo-34926: Make mimetypes.guess_type accept os.PathLike objects (GH-9777)Mayank Asthana2018-10-104-3/+35
| | | | :meth:`mimetypes.MimeTypes.guess_type` now accepts :term:`path-like object` in addition to url strings.
* bpo-33613: Fix test_semaphore_tracker signal tests when using -Werror (GH-9778)Pablo Galindo2018-10-101-2/+4
| | | | | | Tests involving sending signals to the semaphore_tracker will not fail anymore due to the fact that running the test suite with -Werror propagates warnings as errors. Fix a missing assertion when the semaphore_tracker is expected to die.
* Convert code of conduct to markdown for Github (GH-9776)Ammar Askar2018-10-102-14/+12
|
* bpo-34913: Document gzip command line interface (GH-9782)Stéphane Wirtel2018-10-102-0/+36
|
* bpo-23596: Use argparse for the command line of gzip (GH-9781)Stéphane Wirtel2018-10-092-13/+13
| | | | Co-authored-by: Antony Lee <anntzer.lee@gmail.com>
* bpo-23596: Add unit tests for the command line for the gzip module (GH-9775)Stéphane Wirtel2018-10-091-6/+93
| | | | Add unit tests for the command line for the gzip module
* bpo-34769: Thread safety for _asyncgen_finalizer_hook(). (GH-9716)twisteroid ambassador2018-10-093-4/+71
|
* bpo-32962: Fix test_gdb failure in debug build with -mcet -fcf-protection ↵Victor Stinner2018-10-092-1/+33
| | | | | | | | | | | | | -O0 (GH-9656) When Python is built with the intel control-flow protection flags, -mcet -fcf-protection, gdb is not able to read the stack without actually jumping inside the function. This means an extra 'next' command is required to make the $pc (program counter) enter the function and make the stack of the function exposed to gdb. Co-Authored-By: Marcel Plch <gmarcel.plch@gmail.com> (cherry picked from commit 9b7c74ca32d1bec7128d550a9ab1b2ddc7046287)
* bpo-32680 add default "sock" on SMTP objects (#5345)Romuald Brunet2018-10-093-1/+11
| | | | By default the smtplib.SMTP objects did not have a sock attribute, it was only created during connect()
* Extract sendfile tests into a separate test file (#9757)Andrew Svetlov2018-10-092-450/+551
|
* bpo-34758: add .wasm to recognized file extensions in mimetypes module (GH-9464)travisoneill2018-10-092-0/+3
|
* bpo-32174: Let .chm document display non-ASCII characters properly (GH-9758)animalize2018-10-083-1/+42
| | | | | Let .chm document display non-ASCII characters properly Escape the `body` part of .chm source file to 7-bit ASCII, to fix visual effect on some MBCS Windows systems.
* Extract tests for sock_*() functions into a separate file (GH-9761)Andrew Svetlov2018-10-082-130/+238
|
* bpo-31715 Add mimetype for extension .mjs (#3908)Bradley Meck2018-10-082-0/+2
|
* bpo-34921: Allow escaped NoReturn in get_type_hints (GH-9750)Noah Wood2018-10-081-1/+1
|
* bpo-34911: Added support for secure websocket cookies (GH-9734)Paul Bailey2018-10-084-5/+67
|
* bpo-34829: Add missing selection_ methods to the Tkinter Spinbox. (GH-9617)Juliette Monsel2018-10-085-0/+82
| | | | | Implement the methods selection_from(), selection_range(), selection_present() and selection_to() for Tkinter Spinbox.
* Use double quote instead of backtick to clarify Ellipsis constant (GH-9754)Xtreak2018-10-081-3/+2
|
* 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.