summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-37648: Fixed minor inconsistency in some __contains__. (GH-14904)Serhiy Storchaka2019-08-0412-22/+86
| | | | | The collection's item is now always at the left and the needle is on the right of ==.
* bpo-37685: Fixed comparisons of datetime.timedelta and datetime.timezone. ↵Serhiy Storchaka2019-08-047-84/+107
| | | | | | | | | (GH-14996) There was a discrepancy between the Python and C implementations. Add singletons ALWAYS_EQ, LARGEST and SMALLEST in test.support to test mixed type comparison.
* Correct description of HTTP status code 308. (GH-15078)Florian Wendelborn2019-08-031-1/+1
| | | Permanent redirect was explained as a temporary redirect.
* bpo-18049: Define THREAD_STACK_SIZE for AIX to pass default recursion limit ↵Michael Felt2019-08-032-0/+7
| | | | | | test (GH-15081) * Define THREAD_STACK_SIZE for AIX to pass default recursion limit test
* bpo-37444: Update differing exception between builtins and importlib (GH-14869)Ngalim Siregar2019-08-039-108/+134
| | | | | | | | | | Imports now raise `TypeError` instead of `ValueError` for relative import failures. This makes things consistent between `builtins.__import__` and `importlib.__import__` as well as using a more natural import for the failure. https://bugs.python.org/issue37444 Automerge-Triggered-By: @brettcannon
* bpo-30974: Change os.path.samefile docstring to match docs (GH-7337)Timo Furrer2019-08-021-1/+5
|
* bpo-20523: pdb searches for .pdbrc in ~ instead of $HOME (GH-11847)Timothy Hopper2019-08-023-8/+21
| | | | | | | | | | | | | | | | Previously pdb checked the $HOME environmental variable to find the user .pdbrc. If $HOME is not set, the user .pdbrc would not be found. Change pdb to use `os.path.expanduser('~')` to determine the user's home directory. Thus, if $HOME is not set (as in tox or on Windows), os.path.expanduser('~') falls back on other techniques for locating the user's home directory. This follows pip's implementation for loading .piprc. Co-authored-by: Dan Lidral-Porter <dlp@aperiodic.org>
* bpo-36590: Add Bluetooth RFCOMM and support for Windows. (GH-12767)Greg Bowser2019-08-024-6/+158
| | | | | | | | | | | Support for RFCOMM, L2CAP, HCI, SCO is based on the BTPROTO_* macros being defined. Winsock only supports RFCOMM, even though it has a BTHPROTO_L2CAP macro. L2CAP support would build on windows, but not necessarily work. This also adds some basic unittests for constants (all of which existed prior to this commit, just not on windows) and creating sockets. pair: Nate Duarte <slacknate@gmail.com>
* bpo-37742: Return the root logger when logging.getLogger('root') is c… ↵Vinay Sajip2019-08-023-3/+8
| | | | | | | | (#15077) * bpo-37742: Return the root logger when logging.getLogger('root') is called. * Added type check guard on logger name in logging.getLogger() and refined a test.
* bpo-36487: Make C-API docs clear about what the main interpreter is. (gh-12666)Joannah Nanjekye2019-08-022-4/+13
|
* bpo-37729: gc: write stats at once (GH-15050)Inada Naoki2019-08-021-20/+25
| | | | | | | | | | | | | | | gc used several PySys_WriteStderr() calls to write stats. It caused stats mixed up when stderr is shared by multiple processes like this: gc: collecting generation 2... gc: objects in each generation: 0 0gc: collecting generation 2... gc: objects in each generation: 0 0 126077 126077 gc: objects in permanent generation: 0 gc: objects in permanent generation: 0 gc: done, 112575 unreachable, 0 uncollectablegc: done, 112575 unreachable, 0 uncollectable, 0.2223s elapsed , 0.2344s elapsed
* bpo-16970: Adding error message for invalid args (GH-14844)tmblweed2019-08-024-4/+38
| | | | | | | | BPO -16970: Adding error message for invalid args Applied the patch argparse-v2 patch issue 16970, ran patch check and the test suite, test_argparse with 0 errors https://bugs.python.org/issue16970
* bpo-37726: Prefer argparse over getopt in stdlib tutorial (#15052)mental2019-08-012-4/+17
|
* bpo-36302: Sort list of sources (GH-12341)Bernhard M. Wiedemann2019-08-012-1/+4
| | | | | | | | | | | | | | | | | | When building packages (e.g. for openSUSE Linux) (random) filesystem order of input files influences ordering of functions in the output .so files. Thus without the patch, builds (in disposable VMs) would usually differ. Without this patch, all callers have to be patched individually https://github.com/dugsong/libdnet/pull/42 https://github.com/sass/libsass-python/pull/212 https://github.com/tahoe-lafs/pycryptopp/pull/41 https://github.com/yt-project/yt/pull/2206 https://github.com/pyproj4/pyproj/pull/142 https://github.com/pytries/datrie/pull/49 https://github.com/Roche/pyreadstat/pull/37 but that is an infinite effort. See https://reproducible-builds.org/ for why this matters.
* bpo-18049: Sync thread stack size to main thread size on macOS (GH-14748)Ronald Oussoren2019-08-015-3/+9
| | | | | | This changeset increases the default size of the stack for threads on macOS to the size of the stack of the main thread and reenables the relevant recursion test.
* bpo-37730: Fix usage of NotImplemented instead of NotImplementedError in ↵David H2019-07-313-13/+13
| | | | docs. (GH-15062)
* bpo-37723: Fix performance regression on regular expression parsing. (GH-15030)yannvgn2019-07-313-7/+4
| | | | Improve performance of sre_parse._uniq function.
* bpo-34101: Add doc of PyBuffer_GetPointer (GH-14994)Hai Shi2019-07-311-0/+6
|
* bpo-37695: Correct unget_wch error message. (GH-14986)Anthony Sottile2019-07-312-2/+3
|
* bpo-37085: Expose SocketCAN bcm_msg_head flags (#13646)karl ding2019-07-315-0/+38
| | | | | | | | | | | | | | | | | | | | | | | | Expose the CAN_BCM SocketCAN constants used in the bcm_msg_head struct flags (provided by <linux/can/bcm.h>) under the socket library. This adds the following constants with a CAN_BCM prefix: * SETTIMER * STARTTIMER * TX_COUNTEVT * TX_ANNOUNCE * TX_CP_CAN_ID * RX_FILTER_ID * RX_CHECK_DLC * RX_NO_AUTOTIMER * RX_ANNOUNCE_RESUME * TX_RESET_MULTI_IDX * RX_RTR_FRAME * CAN_FD_FRAME The CAN_FD_FRAME flag was introduced in the 4.8 kernel, while the other ones were present since SocketCAN drivers were mainlined in 2.6.25. As such, it is probably unnecessary to guard against these constants being missing.
* Refined Qt GUI example in the logging cookbook. (GH-15045)Vinay Sajip2019-07-311-17/+39
|
* IDLE: changelog correction and addition (GH-15042)Terry Jan Reedy2019-07-312-2/+3
|
* bpo-33821: Update IDLE section of What's New 3.7 (#15036)Terry Jan Reedy2019-07-311-1/+10
| | | | | | * bpo-33821: Update IDLE section of What's New 3.7 * Fix roles.
* bpo-33822: Add IDLE section of What's New 3.8 (#15035)Terry Jan Reedy2019-07-311-0/+27
| | | | | | * bpo-33822: Add IDLE section of What's New 3.8 * Fix role.
* bpo-34162: Add missing items to idlelib/NEWS.txt. (GH-15034)Terry Jan Reedy2019-07-311-0/+11
|
* Fix typos in comments, docs and test names (#15018)Min ho Kim2019-07-3063-73/+73
| | | | | | | | | | | | | | | | | | | | | | | | * Fix typos in comments, docs and test names * Update test_pyparse.py account for change in string length * Apply suggestion: splitable -> splittable Co-Authored-By: Terry Jan Reedy <tjreedy@udel.edu> * Apply suggestion: splitable -> splittable Co-Authored-By: Terry Jan Reedy <tjreedy@udel.edu> * Apply suggestion: Dealloccte -> Deallocate Co-Authored-By: Terry Jan Reedy <tjreedy@udel.edu> * Update posixmodule checksum. * Reverse idlelib changes.
* Fix idlelib typos discovered by min ho, pr 15018. (GH-15029)Terry Jan Reedy2019-07-306-9/+9
|
* bpo-36084: Add threading Native ID information to What's New documentation ↵Jake Tesler2019-07-302-5/+13
| | | | (GH-14845)
* Don't skip pickle check_frame_opcodes() (GH-15025)Neil Schemenauer2019-07-301-1/+0
| | | | This looks like the only place that proto 4 framing gets exercised so leave it as part of the PGO task.
* bpo-37707: Exclude expensive unit tests from PGO task (GH-15009)Neil Schemenauer2019-07-308-0/+24
| | | | | Mark some individual tests to skip when --pgo is used. The tests marked increase the PGO task time significantly and likely don't help improve optimization of the final executable.
* bpo-37704: Remove Tools/scripts/h2py.py (GH-15000)Victor Stinner2019-07-304-173/+2
| | | Use cffi to access a C API in Python.
* bpo-37587: Make json.loads faster for long strings (GH-14752)Marco Paolini2019-07-302-1/+2
| | | | | | | | | | When scanning the string, most characters are valid, so checking for invalid characters first means never needing to check the value of strict on valid strings, and only needing to check it on invalid characters when doing non-strict parsing of invalid strings. This provides a measurable reduction in per-character processing time (~11% in the pre-merge patch testing).
* bpo-37268: Add deprecation notice and a DeprecationWarning for the parser ↵Pablo Galindo2019-07-305-4/+25
| | | | | | | | | | | | | | | module (GH-15017) Deprecate the parser module and add a deprecation warning triggered on import and a warning block in the documentation. https://bugs.python.org/issue37268 Automerge-Triggered-By: @pablogsal
* bpo-34162: Update idlelib/news.txt. (#15011)Terry Jan Reedy2019-07-291-0/+24
|
* bpo-37706: Disable 3 IDLE scrollbar tests on Mac. (#15010)Terry Jan Reedy2019-07-291-7/+29
| | | They pass with tk 8.5.9 (Azure) but fail with the 8.6.x we install.
* Fix publishing of Windows release (GH-15006)Steve Dower2019-07-292-1/+5
|
* Add additional test for multi-line SyntaxError (GH-15003)Anthony Sottile2019-07-291-0/+16
|
* Fix `SyntaxError` indicator printing too many spaces for multi-line strings ↵Anthony Sottile2019-07-293-0/+17
| | | | (GH-14433)
* bpo-36044: Avoid warnings in Windows PGO build and add lzma, bz2 and sqlite ↵Steve Dower2019-07-293-0/+5
| | | | | | | | | coverage (GH-14985) https://bugs.python.org/issue36044 Automerge-Triggered-By: @zooba
* bpo-37697: Sync with importlib_metadata 0.19 (#14993)Jason R. Coombs2019-07-287-794/+841
| | | | | | | | * bpo-37697: Sync with importlib_metadata 0.19 * Run make regen-importlib * 📜🤖 Added by blurb_it.
* bpo-37692: Improve highlight config sample (#14983)Terry Jan Reedy2019-07-282-18/+19
| | | Use an example shell interaction in the sample and better labels for shell elements.
* Remove trailing .0 from version changed note (GH-14987)Nick Coghlan2019-07-281-1/+1
|
* bpo-37691: Let math.dist() accept sequences and iterables for coordinates ↵Raymond Hettinger2019-07-275-20/+47
| | | | (GH-14975)
* bpo-37628: Fix IDLE config sample sizes (#14958)Tal Einat2019-07-275-51/+129
| | | | The boxes for the font and highlight samples are now constrained by the overall config dialog size. They gain scrollbars when the when a large font size makes the samples too large for the box.
* Add Qt GUI example to the logging cookbook. (GH-14978)Vinay Sajip2019-07-271-0/+213
|
* bpo-17535: Increase line number horizontal padding by 2 pixels (GH-14959)Tal Einat2019-07-271-1/+1
|
* bpo-32910: Remove implementation detail in venv documentation. (GH-14968)Derek Keeler2019-07-262-4/+3
|
* bpo-35524: Update Windows installer image in docs (GH-14966)Steve Dower2019-07-261-0/+0
|
* bpo-37664: Update regex for ignoring cache warning on some buildbots (GH-14960)Steve Dower2019-07-261-2/+3
|
* bpo-37340: remove free_list for bound method objects (GH-14232)Inada Naoki2019-07-265-101/+14
|