]> granicus.if.org Git - python/log
python
6 years agobpo-35596: Fix vcruntime140.dll being added to embeddable distro multiple times....
Steve Dower [Thu, 27 Dec 2018 20:44:25 +0000 (12:44 -0800)]
bpo-35596: Fix vcruntime140.dll being added to embeddable distro multiple times. (GH-11329)

https://bugs.python.org/issue35596

6 years agobpo-20182: AC convert remaining functions/methods in _hashopenssl.c (GH-9213)
Tal Einat [Thu, 27 Dec 2018 13:43:43 +0000 (15:43 +0200)]
bpo-20182: AC convert remaining functions/methods in _hashopenssl.c (GH-9213)

6 years agoSpeed-up building enums by value, e.g. http.HTTPStatus(200) (#11318)
Andrew Svetlov [Wed, 26 Dec 2018 18:45:33 +0000 (20:45 +0200)]
Speed-up building enums by value, e.g. http.HTTPStatus(200) (#11318)

bpo-35585: Speed up enum by-value lookup

6 years agobpo-35579: Fix typo in in asyncio-task documentation (GH-11321)
Vaibhav Gupta [Wed, 26 Dec 2018 14:47:17 +0000 (20:17 +0530)]
bpo-35579: Fix typo in in asyncio-task documentation (GH-11321)

https://bugs.python.org/issue35579

https://bugs.python.org/issue35579

6 years agobpo-34897: avoid distutils test error when CXX is not set (GH-9706)
Michael Felt [Wed, 26 Dec 2018 05:45:19 +0000 (06:45 +0100)]
bpo-34897: avoid distutils test error when CXX is not set (GH-9706)

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.

6 years agobpo-34711: Return HTTPStatus.NOT_FOUND if path.endswith('/') and not a directory...
Michael Felt [Wed, 26 Dec 2018 05:43:42 +0000 (06:43 +0100)]
bpo-34711: Return HTTPStatus.NOT_FOUND if path.endswith('/') and not a 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.

6 years agobpo-27643 - skip test_ctypes test case with XLC compiler. (GH-5164)
Michael Felt [Wed, 26 Dec 2018 03:54:22 +0000 (04:54 +0100)]
bpo-27643 - skip test_ctypes test case with XLC compiler. (GH-5164)

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.

6 years agobpo-11192: Skip unsupported cases in test_socket on AIX (GH-8954)
Michael Felt [Wed, 26 Dec 2018 03:34:37 +0000 (04:34 +0100)]
bpo-11192: Skip unsupported cases in test_socket on AIX (GH-8954)

* 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

6 years agoRedo PR 785 -- Add cross reference links (GH-11319)
Raymond Hettinger [Wed, 26 Dec 2018 01:53:36 +0000 (17:53 -0800)]
Redo PR 785 -- Add cross reference links (GH-11319)

6 years agoRevert "bpo-35565: Add detail to assertion failure message in wsgiref" (GH-11317)
Raymond Hettinger [Tue, 25 Dec 2018 23:59:07 +0000 (15:59 -0800)]
Revert "bpo-35565: Add detail to assertion failure message in wsgiref" (GH-11317)

* Revert part of "bpo-35565:  Remove incorrect test and one that wasn't needed for the fix.

6 years agobpo-35565: Add detail to assertion failure message in wsgiref (GH-11293)
Cheryl Sabella [Tue, 25 Dec 2018 23:19:11 +0000 (18:19 -0500)]
bpo-35565: Add detail to assertion failure message in wsgiref (GH-11293)

6 years agobpo-23867: Argument Clinic: inline parsing code for a single positional parameter...
Serhiy Storchaka [Tue, 25 Dec 2018 11:23:47 +0000 (13:23 +0200)]
bpo-23867: Argument Clinic: inline parsing code for a single positional parameter. (GH-9689)

6 years agobpo-20180: Simplify char_converter in Argument Clinic. (GH-9828)
Serhiy Storchaka [Tue, 25 Dec 2018 09:10:05 +0000 (11:10 +0200)]
bpo-20180: Simplify char_converter in Argument Clinic. (GH-9828)

Fix also handling non-ascii default values.

6 years agobpo-35578: Add an example file for testing Argument Clinic converters. (GH-11306)
Serhiy Storchaka [Tue, 25 Dec 2018 08:17:28 +0000 (10:17 +0200)]
bpo-35578: Add an example file for testing Argument Clinic converters. (GH-11306)

6 years agoMinor grammar improvement in types.rst (GH-11308)
Mariatta [Mon, 24 Dec 2018 23:56:05 +0000 (15:56 -0800)]
Minor grammar improvement in types.rst (GH-11308)

defines utility function -> defines utility functions

Reported in https://mail.python.org/pipermail/docs/2018-December/038693.html

6 years agobpo-35208: Fix IDLE Squeezer line counting (GH-10449)
Tal Einat [Mon, 24 Dec 2018 12:05:51 +0000 (14:05 +0200)]
bpo-35208: Fix IDLE Squeezer line counting (GH-10449)

6 years agoClarify the behavior of the staticmethod builtin (GH-4362)
Jess Shapiro [Mon, 24 Dec 2018 07:47:38 +0000 (23:47 -0800)]
Clarify the behavior of the staticmethod builtin (GH-4362)

6 years agoFix minor grammatical mistakes in reversed(dict) doc (GH-10997)
Andre Delfino [Mon, 24 Dec 2018 07:05:23 +0000 (04:05 -0300)]
Fix minor grammatical mistakes in reversed(dict) doc (GH-10997)

6 years agoTweak wording about Fraction and Decimal (GH-10904)
Andre Delfino [Mon, 24 Dec 2018 07:03:40 +0000 (04:03 -0300)]
Tweak wording about Fraction and Decimal (GH-10904)

6 years agobpo-30561: Sync-up expovariate() and gammavariate code (GH-1934)
leodema [Mon, 24 Dec 2018 06:54:25 +0000 (07:54 +0100)]
bpo-30561: Sync-up expovariate() and gammavariate code (GH-1934)

6 years agobpo-35566: Add links to annotation glossary term (GH-11291)
Cheryl Sabella [Mon, 24 Dec 2018 05:09:09 +0000 (00:09 -0500)]
bpo-35566: Add links to annotation glossary term (GH-11291)

6 years agobpo-34764: improve docs example of iter() with sentinel value (GH-11222)
Chris Rands [Mon, 24 Dec 2018 05:07:17 +0000 (06:07 +0100)]
bpo-34764: improve docs example of iter() with sentinel value (GH-11222)

6 years agobpo-35555: IDLE: Gray out Code Context menu item on non-editors (#11282)
Cheryl Sabella [Sun, 23 Dec 2018 21:26:53 +0000 (16:26 -0500)]
bpo-35555: IDLE: Gray out Code Context menu item on non-editors (#11282)

The Code Context menu item only works on Editor windows so disable it for others.

6 years agobpo-35257: fix broken BLDSHARED - needs LDFLAGS too (GH-11297)
Ned Deily [Sun, 23 Dec 2018 20:32:48 +0000 (15:32 -0500)]
bpo-35257: fix broken BLDSHARED - needs LDFLAGS too (GH-11297)

`BLDSHARED` needs to have both `LDFLAGS` and `LDFLAGS_NODIST`, not just `LDFLAGS_NODIST`; `PY_CORE_LDFLAGS` provides both.  For example, as it stands now with just `LDFLAGS_NODIST`, macOS universal builds are broken as the necessary `-arch` flags are no longer passed to the standard library extension module link step from `setup.py` resulting in extension modules being single architecture only.

https://bugs.python.org/issue35257

6 years agoAdd 2 missing commas (GH-10698)
Boštjan Mejak [Sun, 23 Dec 2018 16:45:51 +0000 (17:45 +0100)]
Add 2 missing commas (GH-10698)

6 years agobpo-35567: Convert dict of constants to a set (GH-11296)
Cheryl Sabella [Sun, 23 Dec 2018 16:25:43 +0000 (11:25 -0500)]
bpo-35567: Convert dict of constants to a set (GH-11296)

6 years agoDocument that dict.fromkeys accepts any iterable for keys (GH-10998)
Andre Delfino [Sun, 23 Dec 2018 04:14:46 +0000 (01:14 -0300)]
Document that dict.fromkeys accepts any iterable for keys (GH-10998)

6 years agoUse generator instead of list in code examples (GH-11203)
Recursing [Sun, 23 Dec 2018 03:48:14 +0000 (04:48 +0100)]
Use generator instead of list in code examples (GH-11203)

There is no need to create a list for `sum`
Also, becomes consistent with the first example in Doc/library/os.rst

6 years agobpo-35564: add master_doc='contents' to conf.py (GH-11290)
Jean-François B [Sat, 22 Dec 2018 22:31:08 +0000 (23:31 +0100)]
bpo-35564: add master_doc='contents' to conf.py (GH-11290)

6 years agobpo-30455: Generate all token related code and docs from Grammar/Tokens. (GH-10370)
Serhiy Storchaka [Sat, 22 Dec 2018 09:18:40 +0000 (11:18 +0200)]
bpo-30455: Generate all token related code and docs from Grammar/Tokens. (GH-10370)

"Include/token.h", "Lib/token.py" (containing now some data moved from
"Lib/tokenize.py") and new files "Parser/token.c" (containing the code
moved from "Parser/tokenizer.c") and "Doc/library/token-list.inc" (included
in "Doc/library/token.rst") are now generated from "Grammar/Tokens" by
"Tools/scripts/generate_token.py". The script overwrites files only if
needed and can be used on the read-only sources tree.

"Lib/symbol.py" is now generated by "Tools/scripts/generate_symbol_py.py"
instead of been executable itself.

Added new make targets "regen-token" and "regen-symbol" which are now
dependencies of "regen-all".

The documentation contains now strings for operators and punctuation tokens.

6 years ago bpo-22703: IDLE: Improve Code Context and Zoom Height menu labels (GH-11214)
Cheryl Sabella [Sat, 22 Dec 2018 06:25:45 +0000 (01:25 -0500)]
 bpo-22703: IDLE: Improve Code Context and Zoom Height menu labels (GH-11214)

The Code Context menu label now toggles between Show/Hide Code Context.
 The Zoom Height menu now toggles between Zoom/Restore Height.
 Zoom Height has moved from the Window menu to the Options menu.

https://bugs.python.org/issue22703

6 years agobpo-11566: Extension build errors on Windows for _hypot (GH-11283)
Matt McCormick [Sat, 22 Dec 2018 01:37:59 +0000 (20:37 -0500)]
bpo-11566: Extension build errors on Windows for _hypot (GH-11283)

This addresses C extension build errors related to an undefined _hypot
symbol when building with the Microsoft Visual C++ Compiler for Python
2.7 [1] or MinGWPy [2]. It also addresses errors when building a C++
extension with MinGWPy and C++11 from cmath, 'error "::hypot' has not
been declared'

[1] https://www.microsoft.com/en-us/download/details.aspx?id=44266
[2] https://mingwpy.github.io/

6 years agoFix typo in socketserver docstring (GH-11252)
Christopher Hunt [Fri, 21 Dec 2018 22:22:09 +0000 (17:22 -0500)]
Fix typo in socketserver docstring (GH-11252)

Fix typo in the docstring of `service_actions`.
serve_forver -> serve_forever

6 years agoEnable signing Windows builds with SHA1 environment variable (GH-11279)
Steve Dower [Fri, 21 Dec 2018 21:48:18 +0000 (13:48 -0800)]
Enable signing Windows builds with SHA1 environment variable (GH-11279)

6 years agobpo-33830: Fix an example in http.client docs for 404. (GH-7780)
Xtreak [Fri, 21 Dec 2018 15:34:41 +0000 (21:04 +0530)]
bpo-33830: Fix an example in http.client docs for 404. (GH-7780)

6 years agobpo-34193: Fix pluralization in getargs.c and test cases. (GH-8438)
Xtreak [Fri, 21 Dec 2018 14:45:13 +0000 (20:15 +0530)]
bpo-34193: Fix pluralization in getargs.c and test cases. (GH-8438)

6 years agobpo-35259: Limit `Py_FinalizeEx()` to `Py_LIMITED_API >= 0x03060000`. (GH-10620)
Arthur Neufeld [Thu, 20 Dec 2018 21:11:03 +0000 (15:11 -0600)]
bpo-35259: Limit `Py_FinalizeEx()` to `Py_LIMITED_API >= 0x03060000`. (GH-10620)

6 years agobpo-35424: emit ResourceWarning at multiprocessing.Pool destruction (GH-10974)
Victor Stinner [Thu, 20 Dec 2018 19:33:51 +0000 (20:33 +0100)]
bpo-35424: emit ResourceWarning at multiprocessing.Pool destruction (GH-10974)

multiprocessing.Pool destructor now emits ResourceWarning
if the pool is still running.

6 years agobpo-22831: Use "with" to avoid possible fd leaks in distutils. (GH-10921)
Serhiy Storchaka [Thu, 20 Dec 2018 17:00:14 +0000 (19:00 +0200)]
bpo-22831: Use "with" to avoid possible fd leaks in distutils. (GH-10921)

6 years agoFix mock_open docstring to use readline (#11176)
Xtreak [Thu, 20 Dec 2018 16:00:21 +0000 (21:30 +0530)]
Fix mock_open docstring to use readline (#11176)

6 years agobpo-35521: Add more cross-refs to IDLE docs (#11257)
Terry Jan Reedy [Thu, 20 Dec 2018 11:06:29 +0000 (06:06 -0500)]
bpo-35521: Add more cross-refs to IDLE docs (#11257)

Format menu and preferences.

6 years agobpo-35529: Fix a reference counting bug in PyCFuncPtr_FromDll(). (GH-11229)
Zackery Spytz [Thu, 20 Dec 2018 08:29:38 +0000 (01:29 -0700)]
bpo-35529: Fix a reference counting bug in PyCFuncPtr_FromDll(). (GH-11229)

"dll" would leak if an error occurred in _validate_paramflags() or
GenericPyCData_new().

6 years agobpo-5438: Update memory requirements and optimize test_bigmem.py. (GH-11123)
Serhiy Storchaka [Thu, 20 Dec 2018 07:34:51 +0000 (09:34 +0200)]
bpo-5438: Update memory requirements and optimize test_bigmem.py. (GH-11123)

6 years agobpo-18085: Update refcounts.dat. (GH-11247)
Serhiy Storchaka [Thu, 20 Dec 2018 07:33:58 +0000 (09:33 +0200)]
bpo-18085: Update refcounts.dat. (GH-11247)

Fixed some errors in refcounts.dat, remove functions removed in
Python 3, and add more entries for documented functions. This will
add several automatically generated notes about return values.

6 years agobpo-34162: Update idlelib/NEWS.txt to 2018-12-20. (#11255)
Terry Jan Reedy [Thu, 20 Dec 2018 06:07:10 +0000 (01:07 -0500)]
bpo-34162: Update idlelib/NEWS.txt to 2018-12-20. (#11255)

6 years agobpo-35521: IDLE: Add code context section to docs (#11205)
Cheryl Sabella [Thu, 20 Dec 2018 05:38:54 +0000 (00:38 -0500)]
bpo-35521: IDLE: Add code context section to docs (#11205)

Also add some internal cross-references.

6 years agobpo-35482: Fixes HTML escaping in CHM index and build location of NEWS file (GH-11224)
Steve Dower [Thu, 20 Dec 2018 02:20:06 +0000 (18:20 -0800)]
bpo-35482: Fixes HTML escaping in CHM index and build location of NEWS file (GH-11224)

6 years agobpo-32077: Update refcounts.dat for Unicode object functions. (GH-11243)
Mat M [Wed, 19 Dec 2018 19:13:15 +0000 (14:13 -0500)]
bpo-32077: Update refcounts.dat for Unicode object functions. (GH-11243)

Makes the documentation more comprehensive in terms of indicating
whether or not a function returns a new reference.

Also fixes some errors and adds missing functions.

6 years agobpo-35257: Avoid leaking LTO linker flags into distutils (GH-10900)
stratakis [Wed, 19 Dec 2018 17:19:01 +0000 (18:19 +0100)]
bpo-35257: Avoid leaking LTO linker flags into distutils (GH-10900)

When compiling 3rd party C extensions, the linker flags used by the
compiler for the interpreter and the stdlib modules, will get
leaked into distutils. In order to avoid that, the PY_CORE_LDFLAGS
and PY_LDFLAGS_NODIST are introduced to keep those flags separated.

6 years agobpo-35526: make __future__.barry_as_FLUFL mandatory for Python 4.0 (#11218)
Chris Rands [Wed, 19 Dec 2018 16:19:39 +0000 (17:19 +0100)]
bpo-35526: make __future__.barry_as_FLUFL mandatory for Python 4.0 (#11218)

* extending the joke!

* 📜🤖 Added by blurb_it.

6 years agoFix documented signatures for C API functions. (GH-11236)
Serhiy Storchaka [Wed, 19 Dec 2018 13:31:40 +0000 (15:31 +0200)]
Fix documented signatures for C API functions. (GH-11236)

6 years agoFix Python version since which external enities are not resolved by default. (GH...
Serhiy Storchaka [Wed, 19 Dec 2018 13:29:04 +0000 (15:29 +0200)]
Fix Python version since which external enities are not resolved by default. (GH-11237)

6 years agobpo-35497: add versionadded tag for EPOLLEXCLUSIVE (GH-11162)
Manjusaka [Wed, 19 Dec 2018 11:59:52 +0000 (19:59 +0800)]
bpo-35497: add versionadded tag for EPOLLEXCLUSIVE (GH-11162)

6 years agobpo-35506: Remove redundant and incorrect links from keywords. (GH-11174)
Serhiy Storchaka [Wed, 19 Dec 2018 06:09:46 +0000 (08:09 +0200)]
bpo-35506: Remove redundant and incorrect links from keywords. (GH-11174)

6 years agoRemoved dangling `since Python` at the end of library/xml.rst. (GH-11201)
Jules Lasne (jlasne) [Wed, 19 Dec 2018 06:05:14 +0000 (07:05 +0100)]
Removed dangling `since Python` at the end of library/xml.rst. (GH-11201)

6 years agobpo-35424: Fix test_multiprocessing_main_handling (GH-11223)
Victor Stinner [Tue, 18 Dec 2018 22:54:33 +0000 (23:54 +0100)]
bpo-35424: Fix test_multiprocessing_main_handling (GH-11223)

Fix test_multiprocessing_main_handling: use multiprocessing.Pool with
a context manager and then explicitly join the pool.

6 years agobpo-31731: Fix test_io.check_interrupted_write() (GH-11225)
Victor Stinner [Tue, 18 Dec 2018 22:52:39 +0000 (23:52 +0100)]
bpo-31731: Fix test_io.check_interrupted_write() (GH-11225)

Fix a race condition in check_interrupted_write() of test_io:
create directly the thread with SIGALRM signal blocked,
rather than blocking the signal later from the thread. Previously, it
was possible that the thread gets the signal before the signal is
blocked.

6 years agobpo-23057: add loop self socket as wakeup fd for signals (#11135)
Vladimir Matveev [Tue, 18 Dec 2018 21:56:17 +0000 (13:56 -0800)]
bpo-23057: add loop self socket as wakeup fd for signals (#11135)

6 years agobpo-35465: Document _UnixSelectorEventLoop.add_signal_handler. (GH-11145)
Hrvoje Nikšić [Tue, 18 Dec 2018 21:31:29 +0000 (22:31 +0100)]
bpo-35465: Document _UnixSelectorEventLoop.add_signal_handler. (GH-11145)

6 years agobpo-35502: Fix reference leaks in ElementTree.TreeBuilder. (GH-11170)
Serhiy Storchaka [Tue, 18 Dec 2018 20:29:14 +0000 (22:29 +0200)]
bpo-35502: Fix reference leaks in ElementTree.TreeBuilder. (GH-11170)

6 years agobpo-35516: platform.system_alias() don't replace Darwin (GH-11207)
Victor Stinner [Tue, 18 Dec 2018 18:51:35 +0000 (19:51 +0100)]
bpo-35516: platform.system_alias() don't replace Darwin (GH-11207)

Add a comment explaining why system_alias() doesn't alias Darwin to
macOS.

6 years agobpo-10496: distutils check_environ() handles getpwuid() error (GH-10931)
Victor Stinner [Tue, 18 Dec 2018 15:17:56 +0000 (16:17 +0100)]
bpo-10496: distutils check_environ() handles getpwuid() error (GH-10931)

check_environ() of distutils.utils now catchs KeyError on calling
pwd.getpwuid(): don't create the HOME environment variable in this
case.

6 years agobpo-35523: Remove ctypes callback workaround (GH-11211)
Victor Stinner [Tue, 18 Dec 2018 13:47:21 +0000 (14:47 +0100)]
bpo-35523: Remove ctypes callback workaround (GH-11211)

Remove ctypes callback workaround: no longer create a callback at startup.
Avoid SELinux alert on "import ctypes" and "import uuid".

6 years agobpo-35461: Document C API functions which suppress exceptions. (GH-11119)
Serhiy Storchaka [Tue, 18 Dec 2018 11:57:17 +0000 (13:57 +0200)]
bpo-35461: Document C API functions which suppress exceptions. (GH-11119)

6 years agobpo-31784: Use time.time_ns() in uuid.uuid1() (GH-11189)
Victor Stinner [Tue, 18 Dec 2018 10:45:13 +0000 (11:45 +0100)]
bpo-31784: Use time.time_ns() in uuid.uuid1() (GH-11189)

uuid.uuid1() now calls time.time_ns() rather than
int(time.time() * 1e9). Replace also int(nanoseconds/100)
with nanoseconds // 100. Add an unit test.

6 years agobpo-35519: Rename test.bisect to test.bisect_cmd (GH-11200)
Victor Stinner [Mon, 17 Dec 2018 21:06:10 +0000 (22:06 +0100)]
bpo-35519: Rename test.bisect to test.bisect_cmd (GH-11200)

Rename test.bisect module to test.bisect_cmd to avoid conflict with
bisect module when running directly a test like
"./python Lib/test/test_xmlrpc.py".

6 years agobpo-35348: Fix platform.architecture() (GH-11159)
Victor Stinner [Mon, 17 Dec 2018 17:47:24 +0000 (18:47 +0100)]
bpo-35348: Fix platform.architecture() (GH-11159)

Make platform.architecture() parsing of "file" command output more
reliable:

* Add the "-b" option to the "file" command to omit the filename;
* Force the usage of the C locale;
* Search also the "shared object" pattern.

Co-Authored-By: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-33306: Improve SyntaxError messages for unbalanced parentheses. (GH-6516)
Serhiy Storchaka [Mon, 17 Dec 2018 15:34:14 +0000 (17:34 +0200)]
bpo-33306: Improve SyntaxError messages for unbalanced parentheses. (GH-6516)

6 years agobpo-35475: Add more PyImport* functions in refcounts.dat. (GH-11142)
Serhiy Storchaka [Mon, 17 Dec 2018 15:30:03 +0000 (17:30 +0200)]
bpo-35475: Add more PyImport* functions in refcounts.dat. (GH-11142)

6 years agobpo-35504: Fix segfaults and SystemErrors when deleting certain attrs. (GH-11175)
Zackery Spytz [Mon, 17 Dec 2018 14:52:45 +0000 (07:52 -0700)]
bpo-35504: Fix segfaults and SystemErrors when deleting certain attrs. (GH-11175)

6 years agobpo-35490: Remove the DecodeFSDefault return converter in AC. (#11152)
Serhiy Storchaka [Mon, 17 Dec 2018 14:47:45 +0000 (16:47 +0200)]
bpo-35490: Remove the DecodeFSDefault return converter in AC. (#11152)

6 years agobpo-35504: Fix a SystemError when delete the characters_written attribute of an OSErr...
Serhiy Storchaka [Mon, 17 Dec 2018 14:43:14 +0000 (16:43 +0200)]
bpo-35504: Fix a SystemError when delete the characters_written attribute of an OSError. (GH-11172)

6 years agobpo-18799: Resurrect test_404 in test_xmlrpc. (GH-11196)
Vajrasky Kok [Mon, 17 Dec 2018 14:16:24 +0000 (21:16 +0700)]
bpo-18799: Resurrect test_404 in test_xmlrpc. (GH-11196)

6 years agobpo-35415: validate fileno argument to socket.socket (GH-10917)
Dima Tisnek [Mon, 17 Dec 2018 13:07:55 +0000 (22:07 +0900)]
bpo-35415: validate fileno argument to socket.socket (GH-10917)

https://bugs.python.org/issue35415

6 years agoFixed a few obvious mistakes in c-api docs (GH-11184)
Beomsoo Kim [Mon, 17 Dec 2018 12:57:03 +0000 (21:57 +0900)]
Fixed a few obvious mistakes in c-api docs (GH-11184)

I thought these simple changes doesn't need bpo number(Am I right..?).

Please refer to the commit message for detail.

6 years agobpo-23451: Update time.monotonic() documentation (GH-11190)
Victor Stinner [Mon, 17 Dec 2018 11:12:34 +0000 (12:12 +0100)]
bpo-23451: Update time.monotonic() documentation (GH-11190)

bpo-23451, bpo-22117: Python 3.5 requires Windows Vista or newer,
time.monotonic() is now always system-wide.

6 years agobpo-35513, unittest: TextTestRunner uses time.perf_counter() (GH-11180)
Victor Stinner [Mon, 17 Dec 2018 10:30:34 +0000 (11:30 +0100)]
bpo-35513, unittest: TextTestRunner uses time.perf_counter() (GH-11180)

TextTestRunner of unittest.runner now uses time.perf_counter() rather
than time.time() to measure the execution time of a test: time.time()
can go backwards, whereas time.perf_counter() is monotonic.

Similar change made in libregrtest, pprint and random.

6 years agobpo-35513: Replace time.time() with time.monotonic() in tests (GH-11182)
Victor Stinner [Mon, 17 Dec 2018 08:36:36 +0000 (09:36 +0100)]
bpo-35513: Replace time.time() with time.monotonic() in tests (GH-11182)

Replace time.time() with time.monotonic() in tests to measure time
delta.

test_zipfile64: display progress every minute (60 secs) rather than
every 5 minutes (5*60 seconds).

6 years agobpo-35186: Remove "built with" comment in setup.py upload (GH-10414)
Paul Ganssle [Mon, 17 Dec 2018 07:59:02 +0000 (02:59 -0500)]
bpo-35186: Remove "built with" comment in setup.py upload (GH-10414)

platform.dist() is deprecated and slated for removal in Python 3.8. The
upload command itself should also not be used to upload to PyPI, but
while it continues to exist it should not use deprecated functions.

6 years agobpo-35491, multiprocessing: replace "RUN" with RUN (GH-11178)
Victor Stinner [Sun, 16 Dec 2018 22:40:49 +0000 (23:40 +0100)]
bpo-35491, multiprocessing: replace "RUN" with RUN (GH-11178)

6 years agobpo-35511: Trivial docs updates for profile and resource library modules. (GH-11124)
Beomsoo Kim [Sun, 16 Dec 2018 19:34:08 +0000 (04:34 +0900)]
bpo-35511: Trivial docs updates for profile and resource library modules. (GH-11124)

polish documentation for profile and resource modules

6 years agobpo-35499: make profile-opt don't override CFLAGS_NODIST (GH-11164)
Victor Stinner [Sun, 16 Dec 2018 17:00:42 +0000 (18:00 +0100)]
bpo-35499: make profile-opt don't override CFLAGS_NODIST (GH-11164)

"make profile-opt" no longer replaces CFLAGS_NODIST with CFLAGS. It
now adds profile-guided optimization (PGO) flags to CFLAGS_NODIST,
existing CFLAGS_NODIST flags are kept.

6 years agobpo-35450: reflect in docs that venv module is not always creating a … (GH-11144)
mkkot [Fri, 14 Dec 2018 20:28:52 +0000 (21:28 +0100)]
bpo-35450: reflect in docs that venv module is not always creating a … (GH-11144)

…copy of python binary

https://bugs.python.org/issue35450

6 years agobpo-35402: Update Windows build to use Tcl and Tk 8.6.9 (GH-11146)
Steve Dower [Fri, 14 Dec 2018 17:13:15 +0000 (09:13 -0800)]
bpo-35402: Update Windows build to use Tcl and Tk 8.6.9 (GH-11146)

6 years agobpo-35471: Remove the macpath module (GH-11129)
Victor Stinner [Fri, 14 Dec 2018 12:37:26 +0000 (13:37 +0100)]
bpo-35471: Remove the macpath module (GH-11129)

Python 2.4 dropped MacOS 9 support. The macpath module was deprecated
in Python 3.7. This change removes it.

6 years agobpo-35346: Cleanup platform.architecture() (GH-11130)
Victor Stinner [Fri, 14 Dec 2018 12:14:10 +0000 (13:14 +0100)]
bpo-35346: Cleanup platform.architecture() (GH-11130)

struct.calcsize('P') now always works.

6 years agobpo-34279: regrtest consider that skipped tests are ran (GH-11132)
Victor Stinner [Fri, 14 Dec 2018 12:06:50 +0000 (13:06 +0100)]
bpo-34279: regrtest consider that skipped tests are ran (GH-11132)

bpo-34279, bpo-35412: support.run_unittest() no longer raises
TestDidNotRun if a test result contains skipped tests. The
exception is now only raised if no test have been run and no test
have been skipped.

6 years agobpo-35491: Enhance multiprocessing.BaseProcess.__repr__() (GH-11138)
Victor Stinner [Fri, 14 Dec 2018 11:58:52 +0000 (12:58 +0100)]
bpo-35491: Enhance multiprocessing.BaseProcess.__repr__() (GH-11138)

* Add the pid and parent pid to multiprocessing.BaseProcess.__repr__().
* Add negative sign (ex: "-SIGTERM") to exitcode (process killed
  by a signal)
* Only call _popen.poll() once.

Example:
  <ForkProcess(ForkPoolWorker-1, started daemon)>
becomes:
  <ForkProcess name='ForkPoolWorker-1' pid=12449 parent=12448 started daemon>

Example:
  <ForkProcess(ForkPoolWorker-1, stopped[SIGTERM] daemon)>
becomes:
  <ForkProcess name='ForkPoolWorker-1' pid=12960 parent=12959 stopped exitcode=-SIGTERM daemon>

6 years agoFixed missing colun in library/sys.po (GH-11153)
Jules Lasne (jlasne) [Fri, 14 Dec 2018 11:28:44 +0000 (12:28 +0100)]
Fixed missing colun in library/sys.po (GH-11153)

# Fixed missing colun in library/sys.po

[bpo-35492](https://bugs.python.org/issue35492): Fixed missing colun in library/sys.po

6 years agoAdd multiprocessing.Pool.__repr__() (GH-11137)
Victor Stinner [Fri, 14 Dec 2018 10:13:18 +0000 (11:13 +0100)]
Add multiprocessing.Pool.__repr__() (GH-11137)

* Add multiprocessing.Pool.__repr__() to ease debug
* RUN, CLOSE and TERMINATE constants values are now strings rather
  than integer to ease debug

6 years agobpo-35489: Use "const Py_UNICODE *" for the Py_UNICODE converter in AC. (GH-11150)
Serhiy Storchaka [Fri, 14 Dec 2018 09:19:51 +0000 (11:19 +0200)]
bpo-35489: Use "const Py_UNICODE *" for the Py_UNICODE converter in AC. (GH-11150)

6 years agobpo-31446: Copy command line that should be passed to CreateProcessW(). (GH-11141)
Vladimir Matveev [Fri, 14 Dec 2018 08:30:51 +0000 (00:30 -0800)]
bpo-31446: Copy command line that should be passed to CreateProcessW(). (GH-11141)

6 years agobpo-35477: multiprocessing.Pool.__enter__() fails if called twice (GH-11134)
Victor Stinner [Thu, 13 Dec 2018 01:15:30 +0000 (02:15 +0100)]
bpo-35477: multiprocessing.Pool.__enter__() fails if called twice (GH-11134)

multiprocessing.Pool.__enter__() now fails if the pool is not
running: "with pool:" fails if used more than once.

6 years agobpo-35412: Add testcase to test_future4 (GH-11131)
Victor Stinner [Wed, 12 Dec 2018 17:38:34 +0000 (18:38 +0100)]
bpo-35412: Add testcase to test_future4 (GH-11131)

Add testcase to test_future4: check unicode literal.

6 years agobpo-35346: Drop Mac OS 9 support from platform (GH-10959)
Victor Stinner [Wed, 12 Dec 2018 16:48:08 +0000 (17:48 +0100)]
bpo-35346: Drop Mac OS 9 support from platform (GH-10959)

Drop Mac OS 9 and Rhapsody support from the platform module:

* Rhapsody: last release in 2000
* Mac OS 9: last release in 2001

6 years agobpo-33106: change dbm key deletion error for readonly file from KeyError to dbm.error...
Xiang Zhang [Wed, 12 Dec 2018 12:46:55 +0000 (20:46 +0800)]
bpo-33106: change dbm key deletion error for readonly file from KeyError to dbm.error (#6295)

6 years agoAdd test for double patching instance methods (#11085)
Anthony Sottile [Wed, 12 Dec 2018 07:56:35 +0000 (23:56 -0800)]
Add test for double patching instance methods (#11085)

6 years agobpo-17185: Add __signature__ to mock that can be used by inspect for signature (GH11048)
Xtreak [Wed, 12 Dec 2018 07:54:54 +0000 (13:24 +0530)]
bpo-17185: Add __signature__ to mock that can be used by inspect for signature (GH11048)

* Fix partial and partial method signatures in mock

* Add more calls

* Add NEWS entry

* Use assertEquals and fix markup in NEWS

* Refactor branching and add markup reference for functools

* Revert partial object related changes and fix pr comments

6 years agobpo-35394: Add empty slots to abstract asyncio protocols (#10889)
Andrew Svetlov [Tue, 11 Dec 2018 17:07:05 +0000 (19:07 +0200)]
bpo-35394: Add empty slots to abstract asyncio protocols (#10889)

* bpo-35394: Add empty slots to abstract asyncio protocols

* Add missing test file

6 years agoRemove an unused variable after bpo-35444. (GH-11117)
Serhiy Storchaka [Tue, 11 Dec 2018 13:14:12 +0000 (15:14 +0200)]
Remove an unused variable after bpo-35444. (GH-11117)