summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-35596: Use unchecked PYCs for the embeddable distro to avoid zipimport ↵Steve Dower2019-01-084-7/+36
| | | | | restrictions (GH-11465) Also adds extra steps to the CI build for Windows on Azure Pipelines to validate that the various layouts at least execute.
* bpo-35568: add 'raise_signal' function (GH-11335)Vladimir Matveev2019-01-0810-47/+122
| | | | | | As in title, expose C `raise` function as `raise_function` in `signal` module. Also drop existing `raise_signal` in `_testcapi` module and replace all usages with new function. https://bugs.python.org/issue35568
* bpo-35374: Avoid trailing space in hhc file name if found on PATH. (GH-10849)chrullrich2019-01-081-1/+1
|
* Remove spurious quote in Azure Pipelines script (GH-10763)Pierre Glaser2019-01-081-1/+1
|
* bpo-35682: Fix _ProactorBasePipeTransport._force_close() (GH-11462)Victor Stinner2019-01-082-1/+3
| | | | | | | bpo-32622, bpo-35682: Fix asyncio.ProactorEventLoop.sendfile(): don't attempt to set the result of an internal future if it's already done. Fix asyncio _ProactorBasePipeTransport._force_close(): don't set the result of _empty_waiter if it's already done.
* bpo-35642: Remove asynciomodule.c from pythoncore.vcxproj (GH-11410)Gregory Szorc2019-01-083-4/+1
| | | This module is built by _asyncio.vcxproj and does not need to be included in pythoncore.
* bpo-33717: pythoninfo logs information of all clocks (GH-11460)Victor Stinner2019-01-082-3/+14
| | | | test.pythoninfo now logs information of all clocks, not only time.time() and time.perf_counter().
* bpo-32710: test_asyncio: test_sendfile reset policy (GH-11461)Victor Stinner2019-01-072-0/+7
| | | | | test_asyncio/test_sendfile.py now resets the event loop policy using tearDownModule() as done in other tests, to prevent a warning when running tests on Windows.
* bpo-35664: Optimize operator.itemgetter (GH-11435)Raymond Hettinger2019-01-073-5/+54
|
* bpo-35560: Remove assertion from format(float, "n") (GH-11288)Xtreak2019-01-073-1/+23
| | | | | Fix an assertion error in format() in debug build for floating point formatting with "n" format, zero padding and small width. Release build is not impacted. Patch by Karthikeyan Singaravelan.
* test_threading_local: add missing "import sys" (GH-8049)cclauss2019-01-061-0/+1
|
* bpo-35660: Fix imports in idlelib.window (#11434)Cheryl Sabella2019-01-062-1/+3
| | | | | | | | | | * bpo-35660: IDLE: Remove * import from window.py * sys was being imported through the *, so also added an import sys. * Update 2019-01-04-19-14-29.bpo-35660.hMxI7N.rst Anyone who wants details can check the issue, where I added the point about the sys import bug.
* bpo-35488: Add tests for ** glob matching in pathlib (GH-11171)Anthony Shaw2019-01-062-114/+118
|
* remove doc-string declaration no longer used after AC conversion (GH-11444)Tal Einat2019-01-061-4/+0
|
* bpo-23057: Use 'raise' to emulate ctrl-c in proactor tests (#11274)Vladimir Matveev2019-01-053-76/+24
|
* bpo-35631: Improve typing docs wrt abstract/concrete collection types (GH-11396)Ville Skyttä2019-01-041-8/+17
| | | | https://bugs.python.org/issue35631
* bpo-31450: Remove documentation mentioning that subprocess's child_traceback ↵Harmandeep Singh2019-01-031-3/+1
| | | | is available with the parent process (GH-11422)
* bpo-35641: IDLE - format calltip properly when no docstring (GH-11415)Emmanuel Arias2019-01-034-1/+32
|
* bpo-33987: IDLE - use ttk Frame for ttk widgets (GH-11395)Terry Jan Reedy2019-01-0313-28/+38
|
* 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.