- 31 Jul, 2018 4 commits
-
-
Serhiy Storchaka authored
* 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.
-
Serhiy Storchaka authored
Revert "closes bpo-27494: Fix 2to3 handling of trailing comma after a generator expression (GH-3771)" (#8241) This reverts commit af810b35. This is not valid syntax (see bpo-32012).
-
Serhiy Storchaka authored
* 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.
-
INADA Naoki authored
-
- 30 Jul, 2018 6 commits
-
-
Sergey Fedoseev authored
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.
-
twisteroid ambassador authored
-
Andrés Delfino authored
-
Segev Finer authored
-
Peter Lamut authored
-
Elvis Pranskevichus authored
Various asyncio internals expect that the default executor is a `ThreadPoolExecutor`, so deprecate passing anything else to `loop.set_default_executor()`.
-
- 29 Jul, 2018 6 commits
-
-
Bo Bayles authored
-
Mickaël Schoentgen authored
-
Franz Wöllert authored
-
Stéphane Wirtel authored
-
Vinay Sajip authored
-
Berker Peksag authored
Initial patch by R. David Murray.
-
- 28 Jul, 2018 9 commits
-
-
Berker Peksag authored
-
Tim Golden authored
Serhiy Storchaka pointed out that using test.support.unlink was preferable
-
Raymond Hettinger authored
-
Elena Oat authored
-
Dong-hee Na authored
-
INADA Naoki authored
Co-authored-by: Petr Viktorin <encukou@gmail.com>
-
johnthagen authored
Clarify how to bind to all interfaces using socket
-
Andrés Delfino authored
<!-- issue-number: bpo-5978 --> https://bugs.python.org/issue5978 <!-- /issue-number -->
-
Sanyam Khurana authored
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.
-
- 27 Jul, 2018 4 commits
-
-
Berker Peksag authored
-
Sergey Fedoseev authored
Unused since commit ab994ed8.
-
INADA Naoki authored
/usr/local/lib/pythonX.Y is used by Homebrew's Python already.
-
Berker Peksag authored
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.
-
- 26 Jul, 2018 10 commits
-
-
Tim Golden authored
* 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
-
Victor Stinner authored
-
Andrés Delfino authored
Remove extra `(s)` in the documentation of `compound_stmts`.
-
Serhiy Storchaka authored
-
Victor Stinner authored
* 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.
-
Steve Dower authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
Attributes skipinitialspace, doublequote and strict are now booleans instead of integers 0 or 1.
-
Victor Stinner authored
* 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.
-
- 25 Jul, 2018 1 commit
-
-
chason authored
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).
-