summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-33628: IDLE: Minor code cleanup of codecontext.py and its tests (GH-7085)Cheryl Sabella2018-05-244-59/+62
|
* bpo-33109: argparse subparsers are once again not required by default (GH-6919)Ned Deily2018-05-245-3/+9
| | | | | | | | | bpo-26510 in 3.7.0a2 changed the behavior of argparse to make subparsers required by default, returning to the behavior of 2.7 and 3.2. The behavior was changed in 3.3 to be no longer required. While it might make more sense to have the default to required, compatibility with 3.3 through 3.6 is probably less disruptive than trying to reintroduce compatibility with 2.7 at this point. This change restores the 3.6 behavior.
* bpo-33540: Add block_on_close attr to socketserver (GH-6911)Victor Stinner2018-05-244-12/+43
| | | | Add a new block_on_close class attribute to ForkingMixIn and ThreadingMixIn classes of socketserver to opt-in for pre-3.7 behaviour.
* bpo-33353: test_asyncio set SO_SNDBUF after connect (GH-7086)Victor Stinner2018-05-241-3/+9
| | | | | bpo-32622, bpo-33353: On macOS, sock.connect() changes the SO_SNDBUF value. Only set SO_SNDBUF and SO_RCVBUF buffer sizes once a socket is connected or binded, not before.
* bpo-33353: test_asyncio uses smaller sendfile data (#7083)Victor Stinner2018-05-231-2/+2
| | | | | | | | | | | | | bpo-32622, bpo-33353: sendfile() tests of test_asyncio use socket buffers of 1 kB "to test on relative small data sets". Send only 160 KiB rather 10 MB to make the test much faster. Shrink also SendfileBase.DATA from 1600 KiB to 160 KiB. On Linux, 3 test_sock_sendfile_mix_with_regular_send() runs now take less than 1 second, instead of 18 seconds. On FreeBSD, the 3 tests didn't hang, but took 3 minutes. Now the 3 tests pass in less than 1 seconds.
* bpo-33618: Enable TLS 1.3 in tests (GH-7079)Christian Heimes2018-05-239-46/+142
| | | | | | | | | | | | TLS 1.3 behaves slightly different than TLS 1.2. Session tickets and TLS client cert auth are now handled after the initialy handshake. Tests now either send/recv data to trigger session and client certs. Or tests ignore ConnectionResetError / BrokenPipeError on the server side to handle clients that force-close the socket fd. To test TLS 1.3, OpenSSL 1.1.1-pre7-dev (git master + OpenSSL PR https://github.com/openssl/openssl/pull/6340) is required. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-32436: Document PEP 567 changes to asyncio. (GH-7073)Yury Selivanov2018-05-234-6/+57
|
* bpo-33612: Remove PyThreadState_Clear() assertion (#7069)Victor Stinner2018-05-231-1/+0
| | | | | bpo-25612, bpo-33612: Remove an assertion from PyThreadState_Clear() which failed at Python shutdown or on fork if a thread was running a generator.
* bpo-27300: Add the errors parameter to tempfile classes. (GH-6696)sth2018-05-234-24/+41
|
* Reverse the meaning of is_argument when used for type check (GH-7039)Nina Zakharenko2018-05-231-4/+4
|
* bpo-33604: Remove Pending from hmac Deprecation warning. (GH-7062)Matthias Bussonnier2018-05-224-6/+9
| | | bpo-33604: Bump removal notice from 3.6 to 3.8 and change PendingDeprecationWarning to DeprecationWarning as we had intended to do earlier...
* bpo-33570: TLS 1.3 ciphers for OpenSSL 1.1.1 (GH-6976)Christian Heimes2018-05-225-39/+33
| | | | | | | | | | Change TLS 1.3 cipher suite settings for compatibility with OpenSSL 1.1.1-pre6 and newer. OpenSSL 1.1.1 will have TLS 1.3 cipers enabled by default. Also update multissltests and Travis config to test with latest OpenSSL. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-33516: Add support for __round__ in MagicMock (GH-6880)John Reese2018-05-224-2/+8
| | | unittest.mock.MagicMock now supports the __round__() magic method.
* Add missed details of the C API introduced in 3.7. (GH-7047)Serhiy Storchaka2018-05-224-0/+82
| | | | | | * Set the limited API version for PyImport_GetModule and PyOS_*Fork functions. * Add PyImport_GetModule and Py_UTF8Mode in PC/python3.def. * Add several functions in Doc/data/refcounts.dat.
* bpo-33592: Document the C API in PEP 567 (contextvars) (GH-7033)Elvis Pranskevichus2018-05-223-2/+131
|
* Improve comments in test_idle.py. (GH-7057)Terry Jan Reedy2018-05-221-6/+8
|
* bpo-30877: Fix clearing a cache in the the JSON decoder. (GH-7048)Serhiy Storchaka2018-05-223-2/+7
|
* Add PyThread_tss_* to Doc/data/refcounts.dat. (GH-7038)Masayuki Yamamoto2018-05-221-0/+21
| | | Thread Specific Storage (TSS) API is a public C API (new in 3.7).
* bpo-5945: Improve mappings and sequences C API docs. (GH-7029)Serhiy Storchaka2018-05-225-76/+101
|
* Fix lambda parameters being refered as arguments (GH-7037)Andrés Delfino2018-05-222-3/+3
|
* Use IPv4 only to avoid IP address collision (#7030)Andrew Svetlov2018-05-211-6/+4
|
* bpo-33583: Add note in PyObject_GC_Resize() doc (GH-7021)INADA Naoki2018-05-212-1/+2
|
* Fix asyncio flaky tests (#7023)Andrew Svetlov2018-05-211-2/+3
|
* bpo-33263: Fix FD leak in _SelectorSocketTransport (GH-6450)Vlad Starostin2018-05-213-3/+25
| | | | | | | | | * bpo-33263 Fix FD leak in _SelectorSocketTransport. (GH-6450) Under particular circumstances _SelectorSocketTransport can try to add a reader even the transport is already being closed. This can lead to FD leak and invalid stated of the following connections. Fixed the SelectorSocketTransport to add the reader only if the trasport is still active.
* bpo-26103: Fix inspect.isdatadescriptor() and a data descriptor definition. ↵Aaron Hall, MBA2018-05-205-4/+62
| | | | | | (GH-1959) Look for '__set__' or '__delete__'.
* Fix line breaks added after hyphens by blurb. (GH-7002)Serhiy Storchaka2018-05-2014-77/+77
| | | | Also remove bullet asterisks from IDLE entries.
* Add idlelib and IDLE section to What's New in 3.7. (#7019)Terry Jan Reedy2018-05-201-0/+27
|
* bpo-32262: Fix typo in f-string (GH-7016)Christian Heimes2018-05-202-1/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix typo from commit 6370f345e1d5829e1fba59cd695c8b82c5a8c620 Signed-off-by: Christian Heimes <christian@python.org> <!-- Thanks for your contribution! Please read this comment in its entirety. It's quite important. # Pull Request title It should be in the following format: ``` bpo-NNNN: Summary of the changes made ``` Where: bpo-NNNN refers to the issue number in the https://bugs.python.org. Most PRs will require an issue number. Trivial changes, like fixing a typo, do not need an issue. # Backport Pull Request title If this is a backport PR (PR made against branches other than `master`), please ensure that the PR title is in the following format: ``` [X.Y] <title from the original PR> (GH-NNNN) ``` Where: [X.Y] is the branch name, e.g. [3.6]. GH-NNNN refers to the PR number from `master`. --> <!-- issue-number: bpo-32262 --> https://bugs.python.org/issue32262 <!-- /issue-number -->
* bpo-33541: Remove unused __pad function (GH-4377)Mario Corchero2018-05-202-9/+2
| | | Function was added with the initial implementation 00efe7e798.
* bpo-33580: Make binary/text file glossary entries follow most common "see ↵Andrés Delfino2018-05-201-4/+4
| | | | also" style. (GH-6991)
* bpo-33542: Ignore DUID in uuid.get_node on Windows. (GH-6922)CtrlZvi2018-05-203-1/+4
| | | | | | uuid._ipconfig_getnode did not validate the maximum length of the value, so long as the value had the same type of formatting as a MAC address. This let it select DUIDs as MAC addresses. It now requires an exact length match.
* bpo-30940: Updating round() docs. (GH-6342)Lisa Roach2018-05-201-4/+5
|
* Docs: be less specific about python versions (GH-6985)Eitan Adler2018-05-201-2/+2
| | | | CPython 3.5 is old now, and we don't bump this version often, so lets avoid using specific versions.
* bpo-33584: Fix several minor bugs in asyncio. (GH-7003)Serhiy Storchaka2018-05-202-16/+22
| | | | | | | | | | | | Fix the following bugs in the C implementation: * get_future_loop() silenced all exceptions raised when look up the get_loop attribute, not just an AttributeError. * enter_task() silenced all exceptions raised when look up the current task, not just a KeyError. * repr() was called for a borrowed link in enter_task() and task_step_impl(). * str() was used instead of repr() in formatting one error message (in Python implementation too). * There where few reference leaks in error cases.
* bpo-26819: Prevent proactor double read on resume (#6921)CtrlZvi2018-05-203-2/+17
| | | | | | | | | | The proactor event loop has a race condition when reading with pausing/resuming. `resume_reading()` unconditionally schedules the read function to read from the current future. If `resume_reading()` was called before the previously scheduled done callback fires, this results in two attempts to get the data from the most recent read and an assertion failure. This commit tracks whether or not `resume_reading` needs to reschedule the callback to restart the loop, preventing a second attempt to read the data.
* bpo-23722: Raise a RuntimeError for absent __classcell__. (GH-6931)Serhiy Storchaka2018-05-205-51/+24
| | | A DeprecationWarning was emitted in Python 3.6-3.7.
* bpo-23722: Fix docs for future __classcell__ changes. (GH-6999)Serhiy Storchaka2018-05-202-2/+3
|
* bpo-32996: The bulk of What's New in Python 3.7 (GH-6978)Elvis Pranskevichus2018-05-204-594/+1549
|
* bpo-30928: Update idlelib/NEWS.txt. (#6995)Terry Jan Reedy2018-05-201-0/+5
|
* Fix typo in error message when decoding PYTHONPATH. (GH-6981)Carl Meyer2018-05-191-1/+1
|
* bpo-32831: IDLE: Add docstrings and tests for codecontext (GH-5638)Cheryl Sabella2018-05-193-13/+398
|
* import secrets module in secrets recipes (#6705)Daniel Chimeno2018-05-191-4/+8
|
* bpo-28556: Don't simplify unions at runtime (GH-6841)Ivan Levkivskyi2018-05-184-45/+21
|
* bpo-33556: Remove reference to thread module from docstring (GH-6963)Skip Montanaro2018-05-181-1/+1
|
* Fix C API docs: PyCapsule_Import always set an exception on failure. (GH-6967)Serhiy Storchaka2018-05-181-2/+9
|
* bpo-33564: Add async to IDLE's code context block openers. (GH-6960)Terry Jan Reedy2018-05-182-1/+2
|
* bpo-33559: Attribute changed repr of exceptions (GH-6954)Miro Hrončok2018-05-171-0/+1
|
* Fix Windows build of Python for latest WinSDK. (GH-6874)Carl Meyer2018-05-172-2/+3
|
* bpo-33559: Document changed repr of exceptions (GH-6943)Miro Hrončok2018-05-171-0/+3
|
* asyncio/docs: Mark asyncio.run() as provisional in 3.7. (#6946)Yury Selivanov2018-05-171-0/+2
|