summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-35525: Correct the argument name for NNTP.starttls() (GH-11310)Harmandeep Singh2019-01-021-2/+2
|
* closes bpo-35643: Fix a SyntaxWarning: invalid escape sequence in ↵Mickaël Schoentgen2019-01-022-1/+3
| | | | Modules/_sha3/cleanup.py (GH-11411)
* Bump copyright years to 2019. (GH-11404)Benjamin Peterson2019-01-029-12/+12
|
* Revert "bpo-35603: Escape table header of make_table output that can cause ↵Serhiy Storchaka2019-01-023-15/+0
| | | | | potential XSS. (GH-11341)" (GH-11356) This reverts commit 78de01198b047347abc5e458851bb12c48429e24.
* bpo-35588: Speed up mod, divmod and floordiv operations for Fraction type ↵Stefan Behnel2019-01-023-4/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#11322) * bpo-35588: Implement mod and divmod operations for Fraction type by spelling out the numerator/denominator calculation, instead of instantiating and normalising Fractions along the way. This speeds up '%' and divmod() by 2-3x. * bpo-35588: Also reimplement Fraction.__floordiv__() using integer operations to make it ~4x faster. * Improve code formatting. Co-Authored-By: scoder <stefan_ml@behnel.de> * bpo-35588: Fix return type of divmod(): the result of the integer division should be an integer. * bpo-35588: Further specialise __mod__() and inline the original helper function _flat_divmod() since it's no longer reused. * bpo-35588: Add some tests with large numerators and/or denominators. * bpo-35588: Use builtin "divmod()" function for implementing __divmod__() in order to simplify the implementation, even though performance results are mixed. * Rremove accidentally added empty line. * bpo-35588: Try to provide more informative output on test failures. * bpo-35588: Improve wording in News entry. Co-Authored-By: scoder <stefan_ml@behnel.de> * Remove stray space.
* bpo-35636: Remove redundant check in unicode_hash(). (GH-11402)animalize2019-01-021-10/+1
| | | | _Py_HashBytes() does the check for empty string.
* closes bpo-35623: Fix integer overflow when sorting large lists (GH-11380)sth2019-01-022-1/+1
| | | | | There is already a `Py_ssize_t i` defined at function scope that is used for similar loops. By removing the local `int i` declaration that `i` is used, which has the appropriate type.
* closes bpo-35630: Use code tag for 'python3' in 'README.rst' (GH-11394)Suriyaa ✌️️2019-01-021-1/+1
|
* bpo-35598: IDLE - Globalize some config_key objects (GH-11392)Cheryl Sabella2018-12-313-61/+60
| | | | | Move translate_key() and constant tuples to module level. Inline the remnant one-line function.
* bpo-20182: AC convert Python/sysmodule.c (GH-11328)Tal Einat2018-12-312-409/+1447
|
* bpo-32492: Tweak _collections._tuplegetter. (GH-11367)Serhiy Storchaka2018-12-314-37/+75
| | | | | | * Replace the docstrings cache with sys.intern(). * Improve tests. * Unify names of tp_descr_get and tp_descr_set functions.
* bpo-35609: Remove examples for deprecated decorators in the abc module. ↵Serhiy Storchaka2018-12-311-46/+5
| | | | (GH-11355)
* Fix typo in test module usage message (GH-11374)sth2018-12-311-1/+1
| | | | | A minor typo in the output of `python -m test -h`. A space was missing in between two words. howmuch -> how much
* bpo-35614: Fix pydoc help() on metaclasses (#11357)Sanyam Khurana2018-12-313-1/+13
|
* bpo-35214: Annotate posix calls for clang MSan. (#11389)Gregory P. Smith2018-12-312-1/+17
| | | It doesn't know the details of a few less common libc functions.
* bpo-35214: Skip test_io tests that'd cause a huge malloc under msan (#11385)Gregory P. Smith2018-12-312-1/+15
| | | | | | | | | | * skip test_constructor under msan. * fix the others as well. * reuse existing related news entry. * typo fix
* Fix typos in test_faulthandler skipIfs for ubsan. (GH-11386)Gregory P. Smith2018-12-311-4/+4
|
* bpo-35550: Fix incorrect Solaris define guards (GH-11275)Jakub Kulík2018-12-316-7/+8
| | | | | | | Python source code uses on several places ifdef sun or defined(sun) without the underscores, which is not standard compliant and shouldn't be used. Defines should check for __sun instead. Reference: http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system#Solaris https://bugs.python.org/issue35550
* Cleanup test_faulthandler sanitizer skip logic. (GH-11381)Gregory P. Smith2018-12-311-7/+14
| | | | | | | Also skip the same tests when using the undefined behavior sanitizer as they much with the output. Updates a regex in another test to use multi-line mode so that the ubsan buildbot should pass again rather than also adding a skip to that one.
* Dead code removal from _hashopenssl. (GH-11379)Gregory P. Smith2018-12-312-121/+19
| | | | HASH_OBJ_CONSTRUCTOR has always been defined as 0 since I created hashlib in Python 2.5. Delete all code associated with it.
* bpo-35214: MSan workarounds for socket, time, and test_faulthandler. (GH-11375)Gregory P. Smith2018-12-314-0/+38
| | | | | Add Clang Memory Sanitizer build instrumentation to work around false positives from the socket and time modules as well as skipping a couple test_faulthandler tests.
* bpo-28503: Use crypt_r() when available instead of crypt() (GH-11373)Gregory P. Smith2018-12-306-1/+185
| | | | | Use crypt_r() when available instead of crypt() in the crypt module. As a nice side effect: This also avoids a memory sanitizer flake as clang msan doesn't know about crypt's internal libc allocated buffer.
* Fix typo in documentation of AbstractEventLoopPolicy.set_child_watcher() ↵sth2018-12-301-1/+1
| | | | | (GH-11369) `set_child_watcher()` *sets* the watcher.
* bpo-35598: IDLE: Switch config_key dialog to ttk widgets (GH-11365)Cheryl Sabella2018-12-303-36/+36
|
* bpo-32492: 1.6x speed up in namedtuple attribute access using C fast-path ↵Pablo Galindo2018-12-305-4/+211
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#10495) * bpo-32492: 2.5x speed up in namedtuple attribute access using C fast path * Add News entry * fixup! bpo-32492: 2.5x speed up in namedtuple attribute access using C fast path * Check for tuple in the __get__ of the new descriptor and don't cache the descriptor itself * Don't inherit from property. Implement GC methods to handle __doc__ * Add a test for the docstring substitution in descriptors * Update NEWS entry to reflect time against 3.7 branch * Simplify implementation with argument clinic, better error messages, only __new__ * Use positional-only parameters for the __new__ * Use PyTuple_GET_SIZE and PyTuple_GET_ITEM to tighter the implementation of tuplegetterdescr_get * Implement __set__ to make tuplegetter a data descriptor * Use Py_INCREF now that we inline PyTuple_GetItem * Apply the valid_index() function, saving one test * Move Py_None test out of the critical path.
* bpo-35598: IDLE: Increase test coverage for config_key.py (#11360)Cheryl Sabella2018-12-303-8/+197
|
* bpo-33234: Simplify list_preallocate_exact() (GH-11220)Sergey Fedoseev2018-12-291-14/+3
|
* bpo-35602: Make sure the transport is always closed in ↵Pablo Galindo2018-12-291-5/+5
| | | | | SelectorEventLoopUnixSockSendfileTests (GH-11338) There is a race condition in SelectorEventLoopUnixSockSendfileTests that causes the prepare() method return a non connected server protocol, making the cleanup() method skips the correct handling of the transport. This commit makes prepare() always return a connected server protocol that can always be cleaned up correctly.
* bpo-35603: Escape table header of make_table output that can cause potential ↵Xtreak2018-12-293-0/+15
| | | | XSS. (GH-11341)
* Make sure file object is close if socket.create_connection fails (GH-11334)Pablo Galindo2018-12-291-5/+4
| | | The problem affects _testWithTimeoutTriggeredSend in test_socket.py.
* bpo-35601: Alleviate race condition when waiting for SIGALRM in test_asyncio ↵Pablo Galindo2018-12-291-1/+3
| | | | | | (GH-11337) There is a race condition regarding signal delivery in test_signal_handling_args for test_asyncio.test_events.KqueueEventLoopTests. The signal can be received at any moment outside the time window provided in the test. The fix is to wait for the signal to be received instead with a bigger timeout.
* bpo-34055: Revert deletion of line in IDLE's PyShell (#11346)Terry Jan Reedy2018-12-292-1/+2
| | | | The attribute is still used in other modules.
* bpo-28097: IDLE - Add Previous/Next History to Shell menu (#11325)Cheryl Sabella2018-12-284-10/+22
|
* IDLE: Create function to update menu item state. (GH-11343)Cheryl Sabella2018-12-282-3/+7
| | | | This will be needed for other menu items. Change outwin to call the function instead of updating the menu item directly.
* bpo-20849: add dirs_exist_ok arg to shutil.copytree (patch by Josh Bronson)jab2018-12-285-17/+60
|
* bpo-11191: skip unsupported test_distutils case for AIX with xlc (GH-8709)Michael Felt2018-12-283-1/+8
| | | | | | | Command line options for the xlc compiler behave differently from gcc and clang, so skip this test case for now when xlc is the compiler. Patch by aixtools (Michael Felt)
* bpo-34373: fix test_mktime and test_pthread_getcpuclickid tests on AIX (GH-8726)Michael Felt2018-12-284-20/+57
| | | | | | | | | * Fix test_mktime on AIX by adding code to get mktime to behave the same way as it does on other *nix systems * Fix test_pthread_getcpuclickid in AIX by adjusting the test case expectations when running on AIX in 32-bit mode Patch by Michael Felt.
* bpo-35591: IDLE Find Selection now works when selection not found (GH-11339)Terry Jan Reedy2018-12-282-1/+2
|
* bpo-35598: IDLE: Update config_key.py with PEP8 names (GH-11330)Cheryl Sabella2018-12-284-187/+217
| | | A few other changes make the code easier to follow.
* macOS installer build: mitigate hdiutil resource busy bug (GH-11333)Ned Deily2018-12-271-6/+17
|
* Revert "bpo-35402: Update macOS installer to use Tcl 8.6.9 / Tk 8.6.9.1 ↵Ned Deily2018-12-273-10/+27
| | | | | | | | | | | (GH-11101)" (GH-11332) This reverts commit 7cf3d8e25174c8871883e42f3240fd7f01efd3a8. Due to regressions found with using Tk 8.6.9.1, build the python.org macOS installers with Tcl/Tk 8.6.8 as used in previous releases. https://bugs.python.org/issue35402
* bpo-35596: Fix vcruntime140.dll being added to embeddable distro multiple ↵Steve Dower2018-12-272-1/+2
| | | | | times. (GH-11329) https://bugs.python.org/issue35596
* bpo-20182: AC convert remaining functions/methods in _hashopenssl.c (GH-9213)Tal Einat2018-12-272-100/+303
|
* Speed-up building enums by value, e.g. http.HTTPStatus(200) (#11318)Andrew Svetlov2018-12-262-2/+5
| | | bpo-35585: Speed up enum by-value lookup
* bpo-35579: Fix typo in in asyncio-task documentation (GH-11321)Vaibhav Gupta2018-12-261-1/+1
| | | | | | https://bugs.python.org/issue35579 https://bugs.python.org/issue35579
* bpo-34897: avoid distutils test error when CXX is not set (GH-9706)Michael Felt2018-12-262-1/+3
| | | | | | Depending on system config, a missing candidate compiler name may be reported as the empty string rather than as None, so adjust the test helper accordingly.
* bpo-34711: Return HTTPStatus.NOT_FOUND if path.endswith('/') and not a ↵Michael Felt2018-12-262-0/+11
| | | | | | | | | | directory (GH-9687) AIX allows a trailing slash on local file system paths, which isn't what we want in http.server. Accordingly, check explicitly for this case in the server code, rather than relying on the OS raising an exception. Patch by Michael Felt.
* bpo-27643 - skip test_ctypes test case with XLC compiler. (GH-5164)Michael Felt2018-12-263-4/+23
| | | | | | | | | This test case needs "signed short" bitfields, but the IBM XLC compiler (on AIX) does not support this. Skip the code and test when AIX and XLC are used. Use __xlc__ as identifier to detect the XLC compiler.
* bpo-11192: Skip unsupported cases in test_socket on AIX (GH-8954)Michael Felt2018-12-262-9/+19
| | | | | | * use platform.system() as runtime test, rather than sys.platform() build-time test * IPv6 zone id support on AIX is limited to inet_pton6_zone(), so skip related getaddrinfo() and getnameinfo() tests as not supported
* Redo PR 785 -- Add cross reference links (GH-11319)Raymond Hettinger2018-12-261-0/+5
|