summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-27452: IDLE: Cleanup config.py code (GH-14577) (GH-14802)Miss Islington (bot)2019-07-163-39/+10
| | | | | (cherry picked from commit f8d4cc7dbbf54b9c5435c3080582a4aa421a067d) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* Fix infinite loop in email folding logic (GH-12732)Miss Islington (bot)2019-07-164-6/+35
| | | | | | | | | | | | | As far as I can tell, this infinite loop would be triggered if: 1. The value being folded contains a single word (no spaces) longer than max_line_length 2. The max_line_length is shorter than the encoding's name + 9 characters. bpo-36564: https://bugs.python.org/issue36564 (cherry picked from commit f69d5c61981ea97d251db515c7ff280fcc17182d) Co-authored-by: Paul Ganssle <pganssle@users.noreply.github.com>
* Replace backquote with command substitution in subprocess doc example (GH-13941)Miss Islington (bot)2019-07-162-7/+5
| | | | | | Replace backquotes with POSIXy command substitution in example. (cherry picked from commit 6a61714cde7037cd9a1bcc11ecccb17fe3081295) Co-authored-by: David Jones <drj@pobox.com>
* bpo-37284: Add note to sys.implementation doc (GH-14328)Miss Islington (bot)2019-07-152-0/+5
| | | | | | | | Add a brief note to indicate that any new required attributes must go through the PEP process. https://bugs.python.org/issue37284 (cherry picked from commit 52693c10e82622d883433b779a45d0bd792f17ed) Co-authored-by: Giovanni Cappellotto <gcappellotto@fb.com>
* bpo-37593: Swap the positions of posonlyargs and args in the constructor of ↵Miss Islington (bot)2019-07-148-164/+168
| | | | | | | | ast.parameters nodes (GH-14778) https://bugs.python.org/issue37593 (cherry picked from commit cd6e83b4810549c308ab2d7315dbab526e35ccf6) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* Clarify that plistlib's load and dump functions take a binary file object ↵Miss Islington (bot)2019-07-141-3/+3
| | | | | | | | | | | | | | (GH-9825) The documentation says that the fp parameter to plistlib.load "should be a readable and binary file object" but the docstring only mentions that it should be readable. Similarly, plistlib.dump's docstring only mentions "writable". This commit clarifies that fp should also be binary. https://docs.python.org/3/library/plistlib.htmlGH-plistlib.load https://docs.python.org/3/library/plistlib.htmlGH-plistlib.dump (cherry picked from commit 0d4f4352efecf1b044c88e234e71774fe04b7d6c) Co-authored-by: Collin Styles <collingstyles@gmail.com>
* bpo-37590: Remove redundant docs of PyEval_EvalFrameEx (GH-14765)Miss Islington (bot)2019-07-141-6/+6
| | | | | (cherry picked from commit 40d2226a69aed6252023d365731bd4ed39dc1a4f) Co-authored-by: Hai Shi <shihai1992@gmail.com>
* bpo-37571: Remove extra space in ctypes docs (GH14764)Miss Islington (bot)2019-07-141-1/+1
| | | | | (cherry picked from commit 68c74d05c1fdaf59d8711431884af975ac2ac5f8) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-37571: Add 'b' to prevent the TypeError exception. (GH-14721)Miss Islington (bot)2019-07-141-3/+8
| | | | | | Co-Authored-By: Kyle Stanley <aeros167@gmail.com> (cherry picked from commit 6b929580eb018cfef386db7f7f66b3a58532eada) Co-authored-by: Michele Angrisano <michele.angrisano@gmail.com>
* bpo-36261: Improve example of the preamble field in email docs (GH-14751)Miss Islington (bot)2019-07-141-1/+1
| | | | | (cherry picked from commit 8efade91b12a13102a09a3856179021e579da5e9) Co-authored-by: Carl Bordum Hansen <carl@bordum.dk>
* bpo-26967: fix flag grouping with allow_abbrev=False (GH-14316) (GH-14759)Miss Islington (bot)2019-07-145-1/+28
| | | | | | | | | | | | | The `allow_abbrev` option for ArgumentParser is documented and intended to disable support for unique prefixes of --options, which may sometimes be ambiguous due to deferred parsing. However, the initial implementation also broke parsing of grouped short flags, such as `-ab` meaning `-a -b` (or `-a=b`). Checking the argument for a leading `--` before rejecting it fixes this. This was prompted by pytest-dev/pytestGH-5469, so a backport to at least 3.8 would be great :smile: And this is my first PR to CPython, so please let me know if I've missed anything! https://bugs.python.org/issue26967 (cherry picked from commit dffca9e925ee5c3072663cbe8d4d4768406d5307) Co-authored-by: Zac Hatfield-Dodds <Zac-HD@users.noreply.github.com>
* bpo-30088: Document that existing dir structure isn't verified by ↵Miss Islington (bot)2019-07-133-0/+5
| | | | | | | | | | | | | | | | | | | | | | | mailbox.Maildir (GH-1163) Hi, I've faced an issue w/ `mailbox.Maildir()`. The case is following: 1. I create a folder with `tempfile.TemporaryDirectory()`, so it's empty 2. I pass that folder path as an argument when instantiating `mailbox.Maildir()` 3. Then I receive an exception happening because "there's no such file or directory" (namely `cur`, `tmp` or `new`) during interaction with Maildir **Expected result:** subdirs are created during `Maildir()` instance creation. **Actual result:** subdirs are assumed as existing which leads to exceptions during use. **Workaround:** remove the actual dir before passing the path to `Maildir()`. It will be created automatically with all subdirs needed. **Fix:** This PR. Basically it adds creation of subdirs regardless of whether the base dir existed before. https://bugs.python.org/issue30088 (cherry picked from commit e44184749c2fd0921867ea5cd20b8e226c2146c2) Co-authored-by: Sviatoslav Sydorenko <wk@sydorenko.org.ua>
* bpo-37579: Improve equality behavior for pure Python datetime and time ↵Miss Islington (bot)2019-07-133-2/+26
| | | | | | | | | | | | (GH-14726) Returns NotImplemented for timedelta and time in __eq__ for different types in Python implementation, which matches the C implementation. This also adds tests to enforce that these objects will fall back to the right hand side's __eq__ and/or __ne__ implementation. bpo-37579 (cherry picked from commit e6b46aafad3427463d6264a68824df4797e682f1) Co-authored-by: Xtreak <tir.karthi@gmail.com>
* bpo-37580: Fix typo in http.cookiejar documentation (GH-14731)Miss Islington (bot)2019-07-131-1/+1
| | | | | | | | [bpo-37580](https://bugs.python.org/issue37580): Markup typo in http.cookiejar doc https://bugs.python.org/issue37580 (cherry picked from commit b5bbb8a740eaf46c78d122185de8b072e9deea2a) Co-authored-by: Milan Oberkirch <milan.oberkirch@geops.de>
* Enable publish of Windows releases through Azure Pipelines (GH-14720)Miss Islington (bot)2019-07-136-17/+223
| | | | | (cherry picked from commit 994a3b88dca852696351358e2743313e546b5ecf) Co-authored-by: Steve Dower <steve.dower@python.org>
* Fix typo in re.escape documentation (GH-14722)Miss Islington (bot)2019-07-131-1/+1
| | | | | (cherry picked from commit fb6c1f8d3b116c7e3e3f814bf750d984a2f2ecbf) Co-authored-by: Robert DiPietro <rdipietro@gmail.com>
* closes bpo-37347: Fix refcount problem in sqlite3. (GH-14268)Miss Islington (bot)2019-07-136-98/+66
| | | | | (cherry picked from commit b9a0376b0dedf16a2f82fa43d851119d1f7a2707) Co-authored-by: gescheit <gescheit@yandex-team.ru>
* [3.8] bpo-37521: No longer treat insertion into sys.modules as optional in ↵Miss Islington (bot)2019-07-122-9/+14
| | | | | | | | | | | | | | | | | importlib examples (GH-14723) (GH-14724) Fix importlib examples to insert any newly created modules via importlib.util.module_from_spec() immediately into sys.modules instead of after calling loader.exec_module(). Thanks to Benjamin Mintz for finding the bug. https://bugs.python.org/issue37521 (cherry picked from commit 0827064c955f88df8ba5621d8e3d81be3cfc26a9) Co-authored-by: Brett Cannon <54418+brettcannon@users.noreply.github.com> https://bugs.python.org/issue37521
* bpo-37558: Shared memory tests are failing due to double slashes (GH-14703)Miss Islington (bot)2019-07-112-1/+2
| | | | | | | | With the addition of shared memory into Python 3.8, we now have three tests failing on Solaris, namely `test_multiprocessing_fork`, `test_multiprocessing_forkserver` and `test_multiprocessing_spawn`. The reason seems to be incorrect name handling which results in two slashes being prepended. https://bugs.python.org/issue37558 (cherry picked from commit 4737265622251756a9480ab84af2442b6b986850) Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
* closes bpo-37554: Remove `q:q` in os.rst documentation (GH-14692)Miss Islington (bot)2019-07-111-1/+1
| | | | | | https://bugs.python.org/issue37554 (cherry picked from commit 7cbef72902f32866a416ca6c4e732af4541951b8) Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
* bpo-36390: simplify classifyws(), rename it and add unit tests (GH-14500)Miss Islington (bot)2019-07-112-23/+77
| | | | | (cherry picked from commit 9b5ce62cac27fec9dea473865d79c2c654312957) Co-authored-by: Tal Einat <taleinat@gmail.com>
* bpo-34369: make kqueue.control() docs better reflect that timeout is ↵Miss Islington (bot)2019-07-111-3/+4
| | | | | | | positional-only (GH-9499) (cherry picked from commit 79042ac4348ccc09344014f20dd49401579f8795) Co-authored-by: Tal Einat <taleinat@gmail.com>
* Document default parameter of .seek() in the signature. (GH-14691)Miss Islington (bot)2019-07-111-2/+2
| | | | | (cherry picked from commit 2a3d4d9c53dd4831c3ecf56bc7c4a289c33030d6) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* bpo-26806: IDLE should run without docstrings (GH-14657) (GH-14677)Miss Islington (bot)2019-07-092-8/+19
| | | | | | After fcf1d00, IDLE startup failed with python compiled without docstrings. (cherry picked from commit 6aeb2fe606408aae14c246470794f1303b3be812) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-18374: fix tests to check the correct thing about line numbers ↵Miss Islington (bot)2019-07-091-4/+4
| | | | | | | (GH-14659) (GH-14672) (cherry picked from commit 430a9f44fe22f029ae8cfeecb46621d7e199414b) Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de>
* bpo-37322: ssl test_pha_required_nocert() ignores expected SSLError (GH-14670)Miss Islington (bot)2019-07-091-15/+18
| | | | | | | | | test_ssl.test_pha_required_nocert() now uses support.catch_threading_exception() to ignore the expected SSLError in ConnectionHandler of ThreadedEchoServer (it is only raised sometimes on Windows). (cherry picked from commit 73ea54620a6f91c3f2e53880373dd47813691a21) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-37120: Fix _ssl get_num_tickets() (GH-14668)Miss Islington (bot)2019-07-091-1/+1
| | | | | | | | | Replace PyLong_FromLong() with PyLong_FromSize_t(): SSL_CTX_get_num_tickets() return type is size_t. https://bugs.python.org/issue37120 (cherry picked from commit 76611c7c0af6b2f4d0d98a5db827d34cff54ce25) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-37526: Add support.catch_threading_exception() (GH-14664) (GH-14666)Miss Islington (bot)2019-07-093-0/+92
| | | | | | | Context manager catching threading.Thread exception using threading.excepthook. (cherry picked from commit 91b4f7ab7f9a5e0908b91379ee085ae087a76483) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-18374: fix wrong col_offset of some ast.BinOp instances (GH-14607)Miss Islington (bot)2019-07-084-1/+34
| | | | | | | | Nested BinOp instances (e.g. a+b+c) had a wrong col_offset for the second BinOp (e.g. 2 instead of 0 in the example). Fix it by using the correct st node to copy the line and col_offset from in ast.c. (cherry picked from commit 110a47c4f42cf4db88edc1876899fff8f05190fb) Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de>
* Doc: Fix example title. (GH-14639)Miss Islington (bot)2019-07-081-1/+1
| | | | | (cherry picked from commit 66b4150f6f001640521ae6c9571cd4325cd67394) Co-authored-by: Julien Palard <julien@palard.fr>
* Doc: Fix: Proper UpperCamelCase and lowercase. (GH-14644)Miss Islington (bot)2019-07-081-1/+1
| | | | | | Initial report by Michael Blankenship on docs@ (cherry picked from commit 2da622ff77a763327895656779370b80a833d95c) Co-authored-by: Julien Palard <julien@palard.fr>
* bpo-37421: test_concurrent_futures stops ForkServer (GH-14643) (GH-14645)Miss Islington (bot)2019-07-082-0/+5
| | | | | | | test_concurrent_futures now explicitly stops the ForkServer instance if it's running. (cherry picked from commit e676244235895aeb6ec3b81ca3ccf4a70e487919) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-37520: Correct behavior for zipfile.Path.parent (GH-14638) (GH-14641)Miss Islington (bot)2019-07-073-1/+13
| | | | | | | | * bpo-37520: Correct behavior for zipfile.Path.parent * 📜🤖 Added by blurb_it. (cherry picked from commit 38f44b4a4adc37e8f5f8971917d8b3145f351a56) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* bpo-37513: Change ValueError to TypeError in an example in ctypes doc (GH-14615)Miss Islington (bot)2019-07-071-1/+1
| | | | | (cherry picked from commit f6cdd3ff687ebbf8209d793a18a042ea495c4aeb) Co-authored-by: Hai Shi <shihai1992@gmail.com>
* bpo-37478: Add missing 'and'. (GH-14631)Miss Islington (bot)2019-07-071-1/+1
| | | | | (cherry picked from commit a9b40e4546ca631e5ab41376b5b72e8f296f557d) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-37478: Specify possible exceptions for os.chdir() (GH-14611) (GH-14629)Miss Islington (bot)2019-07-072-0/+4
| | | | | (cherry picked from commit 0717b4d9b3899c5c2ca13031e4ff619a15a4d368) Co-authored-by: Kyle Stanley <aeros167@gmail.com>
* bpo-37456: Slash ('/') is now part of syntax. (GH-14627) (GH-14628)Miss Islington (bot)2019-07-062-4/+1
| | | | | (cherry picked from commit 6f2a8c08573c71b78d2f6e2bfaf31641a0cd092b) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-37487: Fix PyList_GetItem index description. (GH-14623) (GH-14624)Miss Islington (bot)2019-07-062-3/+4
| | | | | | 0 is a legal index. (cherry picked from commit f8709e804d16ec5d44b1d2f00d59a0f78df7b792) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-26806: add 30 to the recursion limit in IDLE's shell (GH-13944)Miss Islington (bot)2019-07-066-135/+181
| | | | | | | | | | | This is done to compensate for the extra stack frames added by IDLE itself, which cause problems when setting the recursion limit to low values. This wraps sys.setrecursionlimit() and sys.getrecursionlimit() as invisibly as possible. (cherry picked from commit fcf1d003bf4f0100c9d0921ff3d70e1127ca1b71) Co-authored-by: Tal Einat <taleinat+github@gmail.com>
* bpo-37149: Replace dead link for online Tkinter reference (GH-14616)Miss Islington (bot)2019-07-062-2/+4
| | | | | | Also fix a name misspelling. (cherry picked from commit 45bc61b97178b27ae05bd3eb95481bf0325795bb) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* closes bpo-37508: Fix name of type in memory.rst. (GH-14604)Miss Islington (bot)2019-07-061-1/+1
| | | | | (cherry picked from commit 39a5d17a7f1387582eb484422df450bc09a5543e) Co-authored-by: Hai Shi <shihai1992@gmail.com>
* Fix some typos (GH-14435)Miss Islington (bot)2019-07-055-8/+8
| | | | | (cherry picked from commit f7d72e48fb235684e17668a1e5107e6b0dab7b80) Co-authored-by: Min ho Kim <minho42@gmail.com>
* bpo-37421: multiprocessing tests now stop ForkServer (GH-14601)Miss Islington (bot)2019-07-053-0/+28
| | | | | | | | multiprocessing tests now stop the ForkServer instance if it's running: close the "alive" file descriptor to ask the server to stop and then remove its UNIX address. (cherry picked from commit 8fbeb14312b4c1320d31ad86e69749515879d1c3) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-37481: Deprecate distutils bdist_wininst command (GH-14553)Miss Islington (bot)2019-07-056-3/+30
| | | | | | | The distutils bdist_wininst command is now deprecated, use bdist_wheel (wheel packages) instead. (cherry picked from commit 1da4462765b084dfa8d869b6cb5855e8f6014a11) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* Use OSError subclasses in os documentation (GH-14262)Miss Islington (bot)2019-07-051-17/+24
| | | | | (cherry picked from commit a55f75a6e3e9cda5c7c30bd961386b1a8a2e9892) Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
* Post v3.8.0b2Łukasz Langa2019-07-041-1/+1
|
* Merge tag 'v3.8.0b2' into 3.8Łukasz Langa2019-07-0497-192/+947
|\ | | | | | | Python 3.8.0b2
| * Python 3.8.0b2v3.8.0b2Łukasz Langa2019-07-0497-192/+947
| |
* | Minor updates to the macOS installer screens for 3.8.0b2 (GH-14501)Miss Islington (bot)2019-07-042-5/+16
| | | | | | | | | | (cherry picked from commit fc1fbe6099e826e8304eadf781af7c10d739fc40) Co-authored-by: Ned Deily <nad@python.org>
* | bpo-37421: Fix multiprocessing get_temp_dir() finalizer (GH-14572)Miss Islington (bot)2019-07-042-1/+17
|/ | | | | | | | | Fix multiprocessing.util.get_temp_dir() finalizer: clear also the 'tempdir' configuration of the current process, so next call to get_temp_dir() will create a new temporary directory, rather than reusing the removed temporary directory. (cherry picked from commit 9d40554e0da09a44a8547f3f3a2b9dedfeaf7928) Co-authored-by: Victor Stinner <vstinner@redhat.com>