summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-34113: Fix a crash when using LLTRACE is on (GH-8517)costypetrisor2018-07-313-17/+60
| | | Fix a crash on negative STACKADJ() when Low-Level trace (LLTRACE) is enabled.
* bpo-34263 Cap timeout submitted to epoll/select etc. to one day. (GH-8532)MartinAltmayer2018-07-313-5/+6
|
* bpo-33089: Add math.dist() for computing the Euclidean distance between two ↵Raymond Hettinger2018-07-315-1/+236
| | | | points (GH-8561)
* bpo-33871: Fix os.sendfile(), os.writev(), os.readv(), etc. (GH-7931)Serhiy Storchaka2018-07-315-32/+114
| | | | | | | | | | | | * Fix integer overflow in os.readv(), os.writev(), os.preadv() and os.pwritev() and in os.sendfile() with headers or trailers arguments (on BSD-based OSes and MacOS). * Fix sending the part of the file in os.sendfile() on MacOS. Using the trailers argument could cause sending more bytes from the input file than was specified. Thanks Ned Deily for testing on 32-bit MacOS.
* bpo-33729: Fix issues with arguments parsing in hashlib. (GH-8346)Serhiy Storchaka2018-07-3112-232/+214
| | | | | | | | | | | | | | | | | | | | | | | | * help(hashlib) didn't work because of incorrect module name in blake2b and blake2s classes. * Constructors blake2*(), sha3_*(), shake_*() and keccak_*() incorrectly accepted keyword argument "string" for binary data, but documented as accepting the "data" keyword argument. Now this parameter is positional-only. * Keyword-only parameters in blake2b() and blake2s() were not documented as keyword-only. * Default value for some parameters of blake2b() and blake2s() was None, which is not acceptable value. * The length argument for shake_*.digest() was wrapped out to 32 bits. * The argument for shake_128.digest() and shake_128.hexdigest() was not positional-only as intended. * TypeError messages for incorrect arguments in all constructors sha3_*(), shake_*() and keccak_*() incorrectly referred to sha3_224. Also made the following enhancements: * More accurately specified input and result types for strings, bytes and bytes-like objects. * Unified positional parameter names for update() and constructors. * Improved formatting.
* Revert "closes bpo-27494: Fix 2to3 handling of trailing comma after a ↵Serhiy Storchaka2018-07-317-36/+12
| | | | | | | | generator expression (GH-3771)" (#8241) This reverts commit af810b35b494ef1d255d4bf340b92a9dad446995. This is not valid syntax (see bpo-32012).
* bpo-1617161: Make the hash and equality of methods not depending on the ↵Serhiy Storchaka2018-07-316-73/+112
| | | | | | | | | | | value of self. (GH-7848) * The hash of BuiltinMethodType instances no longer depends on the hash of __self__. It depends now on the hash of id(__self__). * The hash and equality of ModuleType and MethodWrapperType instances no longer depend on the hash and equality of __self__. They depend now on the hash and equality of id(__self__). * MethodWrapperType instances no longer support ordering.
* bpo-27671: Update FAQ about why len is function (GH-8432)INADA Naoki2018-07-311-18/+19
|
* Remove creation of a list for row_cast_map in pysqlite_cursor_init() (GH-8494)Sergey Fedoseev2018-07-301-5/+2
| | | | | This list is never used: if detect_types is on, this list will be replaced with another one before row_cast_map is used, if detect_types is off, row_cast_map is not used at all.
* bpo-33833: Fix ProactorSocketTransport AssertionError (#7893)twisteroid ambassador2018-07-303-0/+19
|
* Use 'for example' instead of 'in other words' in compound statement doc ↵Andrés Delfino2018-07-301-1/+1
| | | | (GH-8401)
* Fix typos & formatting in Using Python on Windows doc (GH-8559)Segev Finer2018-07-301-4/+4
|
* Add docstrings to public methods from context.c (GH-8531)Peter Lamut2018-07-303-17/+80
|
* bpo-34075: Deprecate non-ThreadPoolExecutor in loop.set_default_executor() ↵Elvis Pranskevichus2018-07-305-2/+35
| | | | | | | (GH-8533) Various asyncio internals expect that the default executor is a `ThreadPoolExecutor`, so deprecate passing anything else to `loop.set_default_executor()`.
* bpo-34182: Fix test_pydoc running as a script. (GH-8389)Bo Bayles2018-07-291-1/+2
|
* bpo-34035: Fix several AttributeError in zipfile seek() methods. (GH-8527)Mickaël Schoentgen2018-07-294-4/+9
|
* bpo-31047: Fix ntpath.abspath for invalid paths (GH-8544)Franz Wöllert2018-07-293-22/+26
|
* bpo-34231: PYTHONBREAKPOINT is not documented on python --help (GH-8475)Stéphane Wirtel2018-07-292-0/+5
|
* Updated MSI README to mention dependency on .NET 3.5. (GH-8375)Vinay Sajip2018-07-291-0/+8
|
* bpo-8145: Improve isolation_level documentation (GH-8499)Berker Peksag2018-07-291-14/+22
| | | Initial patch by R. David Murray.
* bpo-34251: Restore msilib.Win64 to preserve compatibility (GH-8510)Berker Peksag2018-07-282-0/+4
|
* bpo-42349: Switch to test.support.unlink per review by Serhiy Storchaka ↵Tim Golden2018-07-281-4/+1
| | | | | (GH-8529) Serhiy Storchaka pointed out that using test.support.unlink was preferable
* bpo-33089: Multidimensional math.hypot() (GH-8474)Raymond Hettinger2018-07-285-81/+143
|
* bpo-24356: Specify which Python binary will be used with venv (GH-6589)Elena Oat2018-07-282-8/+8
|
* bpo-33476: Fix _header_value_parser when address group is missing final ';' ↵Dong-hee Na2018-07-283-1/+28
| | | | (GH-7484)
* bpo-33666: Add what's new entry for os.errno removal (GH-#8497)INADA Naoki2018-07-281-0/+6
| | | Co-authored-by: Petr Viktorin <encukou@gmail.com>
* bpo-33921: Clarify how to bind to all interfaces using socket (GH-7877)johnthagen2018-07-281-6/+7
| | | Clarify how to bind to all interfaces using socket
* bpo-5978: Document that profiling needs cmd/function to return (GH-7938)Andrés Delfino2018-07-281-0/+5
| | | | | | <!-- issue-number: bpo-5978 --> https://bugs.python.org/issue5978 <!-- /issue-number -->
* bpo-29710: Clarify documentation for Bitwise binary operation (GH-1691)Sanyam Khurana2018-07-281-7/+13
| | | | | Mathematically, bitwise operations on integers behave as if there were an infinite number of sign bits. Pragmatically, that gives the same answer as using one extra sign bit for the bitwise logical operations.
* bpo-30722: Fix NEWS entries (GH-8501)Berker Peksag2018-07-272-6/+0
|
* Remove some unused code in _pysqlite_query_execute() (GH-8495)Sergey Fedoseev2018-07-271-6/+0
| | | Unused since commit ab994ed8b97e1b0dac151ec827c857f5e7277565.
* vsts: Avoid conflict with Homebrew Python (GH-8430)INADA Naoki2018-07-272-2/+2
| | | /usr/local/lib/pythonX.Y is used by Homebrew's Python already.
* bpo-12743: Delete comment from marshal.rst (GH-8457)Berker Peksag2018-07-271-14/+10
| | | | | | Also, update the list of exceptions that may raised by PyMarshal_* functions. We usually don't document exceptions raised by a function, but in this case most of them were already documented in C API and standard library documentation.
* bpo-34239: Convert test_bz2 to use tempfile (#8485)Tim Golden2018-07-261-2/+6
| | | | | | | | | * bpo-34239: Convert test_bz2 to use tempfile test_bz2 currently uses the test.support.TESTFN functionality which creates a temporary file local to the test directory named around the pid. This can give rise to race conditions where tests are competing with each other to delete and recreate the file. This change converts the tests to use tempfile.mkstemp which gives a different file every time from the system's temp area
* bpo-34170, test_embed: write Py_Initialize() tests (GH-8484)Victor Stinner2018-07-263-2/+495
|
* Fix typo: variables(s) (GH-8482)Andrés Delfino2018-07-261-1/+1
| | | Remove extra `(s)` in the documentation of `compound_stmts`.
* bpo-34201: Tweak test_buffer. (GH-8481)Serhiy Storchaka2018-07-261-3/+2
|
* bpo-34170: Cleanup pymain_read_conf() (GH-8476)Victor Stinner2018-07-263-74/+71
| | | | | | | | | | * Config: Rename ignore_environment field to use_environment. * _PyCoreConfig_Read(): if isolated is set, use_environment and site_import are now always set to 0. * Inline pymain_free_raw() into pymain_free() * Move config_init_warnoptions() call into pymain_read_conf_impl() * _PyCoreConfig_Read(): don't replace values if they are already set: faulthandler, pycache_prefix, home.
* bpo-34225: Ensure INCLUDE and LIB directories do not end with a backslash. ↵Steve Dower2018-07-262-2/+3
| | | | (GH-8464)
* bpo-34201: Make ndarray.readonly a bool and use stricter tests in ↵Serhiy Storchaka2018-07-262-41/+41
| | | | test_buffer. (GH-8414)
* bpo-20260: Implement non-bitwise unsigned int converters for Argument ↵Serhiy Storchaka2018-07-2613-112/+183
| | | | Clinic. (GH-8434)
* bpo-34197: Make _csv.Dialect attributes booleans. (GH-8440)Serhiy Storchaka2018-07-263-36/+38
| | | | Attributes skipinitialspace, doublequote and strict are now booleans instead of integers 0 or 1.
* bpo-34170: Enhance _PyCoreConfig_Read() (GH-8468)Victor Stinner2018-07-265-76/+96
| | | | | | | | | | | | * Inline cmdline_get_env_flags() into config_read_env_vars(): _PyCoreConfig_Read() now reads much more environment variables like PYTHONVERBOSE. * Allow to override faulthandler and allocator even if dev_mode=1. PYTHONMALLOC is now the priority over PYTHONDEVMODE. * Fix _PyCoreConfig_Copy(): copy also install_signal_handlers, coerce_c_locale and coerce_c_locale_warn * _PyCoreConfig.install_signal_handlers default is now 1: install signals by default * Fix also a compiler warning: don't define _PyPathConfig type twice.
* bpo-32663 Make SMTPUTF8SimTests run (#5314)chason2018-07-252-25/+16
| | | | | | | | | | | Enable and fix SMTPUTF8SimTests in test_smtplib. The tests for SMTPUTF8SimTests in test_smtplib.py were not actually being run because test_smtplib was still using the 'test_main' pattern, and the class was never added to test_main. Additionally, one of the tests needed to be moved to the non-UTF8 server class because it relies on the server not being UTF-8 compatible (and it had a bug in in).
* bpo-34228: Allow PYTHONTRACEMALLOC=0 (GH-8467)Victor Stinner2018-07-254-9/+30
| | | | | PYTHONTRACEMALLOC=0 environment variable and -X tracemalloc=0 command line option are now allowed to disable explicitly tracemalloc at startup.
* bpo-29097: Forego fold detection on windows for low timestamp values (GH-2385)Ammar Askar2018-07-254-2/+34
| | | On Windows, passing a negative value to local results in an OSError because localtime_s on Windows does not support negative timestamps. Unfortunately this means that fold detection for timestamps between 0 and max_fold_seconds will result in this OSError since we subtract max_fold_seconds from the timestamp to detect a fold. However, since we know there haven't been any folds in the interval [0, max_fold_seconds) in any timezone, we can hackily just forego fold detection for this time range on Windows.
* bpo-13041: Use shutil.get_terminal_size() in argparse.HelpFormatter (GH-8459)Berker Peksag2018-07-253-6/+8
|
* bpo-28677: Improve phrasing of when instance attribute is referenced (GH-6208)Aaron Ang2018-07-251-2/+2
|
* bpo-34195: Fix case-sensitive comparison in test_nt_helpers (GH-8448)Tim Golden2018-07-251-5/+11
| | | | | * Fix case-sensitive comparison test_nt_helpers assumed that two versions of a Windows path could be compared case-sensitively. This is not the case, and the difference can be triggered (apparently) by running the test on a path somewhere below a Junction.
* bpo-34218: Fix a leak in _elementtree.c introduced in GH-6769. (GH-8460)Serhiy Storchaka2018-07-251-0/+1
|