]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
10 years agoIssue #26864: Fix case insensitivity and suffix comparison with no_proxy
Martin Panter [Sat, 30 Apr 2016 01:03:40 +0000 (01:03 +0000)] 
Issue #26864: Fix case insensitivity and suffix comparison with no_proxy

Patch by Xiang Zhang.

10 years agoIssue #25551: Test condition behavior instead of its internals
Berker Peksag [Fri, 29 Apr 2016 14:25:29 +0000 (17:25 +0300)] 
Issue #25551: Test condition behavior instead of its internals

test_reset_internal_locks was looking at Event's _cond._lock. This
makes it harder to change internals of the Condition object and
makes the test fragile.

The test was added by Nir Soffer in 6108d30dde21.

Patch by Nir Soffer.

10 years agoIssue #26322: Document typing.Set, patch by Joseph Moran
Berker Peksag [Fri, 29 Apr 2016 11:41:16 +0000 (14:41 +0300)] 
Issue #26322: Document typing.Set, patch by Joseph Moran

10 years agoIssue #26822: Decreased an overhead of using _PyArg_NoKeywords() in calls of
Serhiy Storchaka [Fri, 29 Apr 2016 06:10:55 +0000 (09:10 +0300)] 
Issue #26822: Decreased an overhead of using _PyArg_NoKeywords() in calls of
itemgetter, attrgetter and methodcaller objects.

10 years agoIssue #26875: Fix mmap example
Zachary Ware [Thu, 28 Apr 2016 19:47:12 +0000 (14:47 -0500)] 
Issue #26875: Fix mmap example

Patch by Xiang Zhang.

10 years agoIssue #26874: Simplify the divmod docstring
Zachary Ware [Thu, 28 Apr 2016 19:39:50 +0000 (14:39 -0500)] 
Issue #26874: Simplify the divmod docstring

10 years agoIssue #26874: Fix divmod docstring
Zachary Ware [Thu, 28 Apr 2016 19:24:55 +0000 (14:24 -0500)] 
Issue #26874: Fix divmod docstring

10 years agofileinput.hook_encoded() uses builtin open(), not codecs.open().
Serhiy Storchaka [Wed, 27 Apr 2016 20:06:15 +0000 (23:06 +0300)] 
fileinput.hook_encoded() uses builtin open(), not codecs.open().

10 years agoIssue #20598: Replace trivial split() calls with lists in argparse docs
Martin Panter [Tue, 26 Apr 2016 11:41:25 +0000 (11:41 +0000)] 
Issue #20598: Replace trivial split() calls with lists in argparse docs

10 years agoIssue #24715: Improve sort stability example
Raymond Hettinger [Tue, 26 Apr 2016 08:11:10 +0000 (01:11 -0700)] 
Issue #24715: Improve sort stability example

10 years agoIssue #26634: recursive_repr() now sets __qualname__ of wrapper.
Serhiy Storchaka [Tue, 26 Apr 2016 06:30:44 +0000 (09:30 +0300)] 
Issue #26634: recursive_repr() now sets __qualname__ of wrapper.
Patch by Xiang Zhang.

10 years agoIssue #26804: urllib.request will prefer lower_case proxy environment variables
Senthil Kumaran [Mon, 25 Apr 2016 15:16:23 +0000 (08:16 -0700)] 
Issue #26804: urllib.request will prefer lower_case proxy environment variables
over UPPER_CASE or Mixed_Case ones.

Patch contributed by Hans-Peter Jansen. Reviewed by Martin Panter and Senthil Kumaran.

10 years agoFileExistsError is raised by mkdir when dir exists
Zachary Ware [Mon, 25 Apr 2016 14:27:27 +0000 (09:27 -0500)] 
FileExistsError is raised by mkdir when dir exists

Reported by Saul Spatz on docs@

10 years agoIssue #23662: Document default value of RFC 2109 attributes
Berker Peksag [Mon, 25 Apr 2016 11:32:19 +0000 (14:32 +0300)] 
Issue #23662: Document default value of RFC 2109 attributes

10 years agoIssue #26837: assertSequenceEqual() now correctly outputs non-stringified
Serhiy Storchaka [Mon, 25 Apr 2016 05:58:25 +0000 (08:58 +0300)] 
Issue #26837: assertSequenceEqual() now correctly outputs non-stringified
differing items (like bytes in the -b mode).  This affects assertListEqual()
and assertTupleEqual().

10 years agoRemove duplicated tests.
Serhiy Storchaka [Sun, 24 Apr 2016 20:50:18 +0000 (23:50 +0300)] 
Remove duplicated tests.

There were duplicated methods with the same name and body.

10 years agoIssue #26801: shutil.get_terminal_size() now handles the case of stdout is
Serhiy Storchaka [Sun, 24 Apr 2016 06:58:43 +0000 (09:58 +0300)] 
Issue #26801: shutil.get_terminal_size() now handles the case of stdout is
reopened on Windows.  Added tests for fallbacks.

10 years agoIssue #24911: All socket objects are context managers; update examples
Martin Panter [Sun, 24 Apr 2016 04:24:36 +0000 (04:24 +0000)] 
Issue #24911: All socket objects are context managers; update examples

10 years agoIssue #23806: Update susp-ignored.csv
Martin Panter [Sun, 24 Apr 2016 04:06:15 +0000 (04:06 +0000)] 
Issue #23806: Update susp-ignored.csv

10 years agoIssue #26041: Remove "will be removed in Python 3.7" from description messages
Berker Peksag [Sun, 24 Apr 2016 00:32:24 +0000 (03:32 +0300)] 
Issue #26041: Remove "will be removed in Python 3.7" from description messages

We will keep platform.dist() and platform.linux_distribution() to make porting
from Python 2 easier.

Patch by Kumaripaba Miyurusara Athukorala.

10 years agoIssue #19731: Update copyright year in docs.p.o footer
Berker Peksag [Sun, 24 Apr 2016 00:21:13 +0000 (03:21 +0300)] 
Issue #19731: Update copyright year in docs.p.o footer

See https://mail.python.org/pipermail/python-legal-sig/2013-November/000059.html
for details.

Patch by Antoine Pitrou.

10 years agoIssue #18572: Remove redundant note about surrogates in string escape doc
Berker Peksag [Sun, 24 Apr 2016 00:13:40 +0000 (03:13 +0300)] 
Issue #18572: Remove redundant note about surrogates in string escape doc

10 years agoIssue #18353: Remove PyUnicode_WRITE_CHAR macro link from c-api/unicode.rst
Berker Peksag [Sun, 24 Apr 2016 00:06:44 +0000 (03:06 +0300)] 
Issue #18353: Remove PyUnicode_WRITE_CHAR macro link from c-api/unicode.rst

Patch by Corey Brune.

10 years agoIssue #21382: Clarify signal.signal() documentation on Windows
Berker Peksag [Sat, 23 Apr 2016 23:59:16 +0000 (02:59 +0300)] 
Issue #21382: Clarify signal.signal() documentation on Windows

All signal.SIG* constants may not be defined on Windows so a call like

    signal.signal(signal.SIGPIPE, lambda signum, frame: sys.exit(1))

will raise an AttributeError.

10 years agoIssue #20112: Improve BaseHTTPRequestHandler.error_message_format documentation
Berker Peksag [Sat, 23 Apr 2016 22:51:02 +0000 (01:51 +0300)] 
Issue #20112: Improve BaseHTTPRequestHandler.error_message_format documentation

* Explain how 'error_message_format' is used by 'send_error' method
* Mention that 'responses' is used by 'send_response_only' and 'send_error' methods
* Replace 'class variables' with 'attributes'

Initial patch by Anastasia Filatova.

10 years agoIssue #26822: itemgetter, attrgetter and methodcaller objects no longer
Serhiy Storchaka [Sat, 23 Apr 2016 07:51:39 +0000 (10:51 +0300)] 
Issue #26822: itemgetter, attrgetter and methodcaller objects no longer
silently ignore keyword arguments.

10 years agofix python 3 mod init function declaration (closes #26827)
Benjamin Peterson [Sat, 23 Apr 2016 06:43:10 +0000 (23:43 -0700)] 
fix python 3 mod init function declaration (closes #26827)

10 years agoIssue #26733: Disassembling a class now disassembles class and static methods.
Serhiy Storchaka [Sat, 23 Apr 2016 06:23:52 +0000 (09:23 +0300)] 
Issue #26733: Disassembling a class now disassembles class and static methods.
Patch by Xiang Zhang.

10 years agoIssue23806 - Document the no_proxy environment variable in Python 3 docs.
Senthil Kumaran [Sat, 23 Apr 2016 03:34:42 +0000 (20:34 -0700)] 
Issue23806 - Document the no_proxy environment variable in Python 3 docs.

10 years agoIssue #22359: Disable running cross-compiled _freeze_importlib and pgen
Martin Panter [Sat, 23 Apr 2016 00:58:44 +0000 (00:58 +0000)] 
Issue #22359: Disable running cross-compiled _freeze_importlib and pgen

Patch by Xavier de Gaye.

10 years agogdb/libpython.py: inline _type_void_ptr()
Victor Stinner [Wed, 20 Apr 2016 16:26:12 +0000 (18:26 +0200)] 
gdb/libpython.py: inline _type_void_ptr()

The function was only called in _sizeof_void_p()

10 years agoIssue #26799: Fix typo in Misc/NEWS
Victor Stinner [Wed, 20 Apr 2016 16:23:49 +0000 (18:23 +0200)] 
Issue #26799: Fix typo in Misc/NEWS

10 years agopython-gdb.py: get C types at runtime
Victor Stinner [Wed, 20 Apr 2016 16:07:21 +0000 (18:07 +0200)] 
python-gdb.py: get C types at runtime

Issue #26799: Fix python-gdb.py: don't get once C types when the Python code
is loaded, but get C types on demande. The C types can change if
python-gdb.py is loaded before the Python executable.

Patch written by Thomas Ilsche.

10 years agoFix spelling (inital), grammar (may translates) in documentation, comments
Martin Panter [Tue, 19 Apr 2016 04:03:41 +0000 (04:03 +0000)] 
Fix spelling (inital), grammar (may translates) in documentation, comments

10 years agoBackport test_gdb fix for s390x buildbots
Victor Stinner [Tue, 19 Apr 2016 22:30:14 +0000 (00:30 +0200)] 
Backport test_gdb fix for s390x buildbots

10 years agoMention types.SimpleNamespace in collections.namedtuple doc
Paul Moore [Tue, 19 Apr 2016 18:17:16 +0000 (19:17 +0100)] 
Mention types.SimpleNamespace in collections.namedtuple doc

Issue #26805.

10 years agoFix shutil.get_terminal_size() error handling
Victor Stinner [Tue, 19 Apr 2016 20:24:56 +0000 (22:24 +0200)] 
Fix shutil.get_terminal_size() error handling

Issue #26801: Fix error handling in shutil.get_terminal_size(), catch
AttributeError instead of NameError. Patch written by Emanuel Barry.

test_shutil: skip the functional test using "stty size" command if
os.get_terminal_size() is missing.

10 years agoTrivial typo
Jesus Cea [Tue, 19 Apr 2016 19:50:19 +0000 (21:50 +0200)] 
Trivial typo

10 years agoReplace assert statements with self.assertXxx() calls
Zachary Ware [Tue, 19 Apr 2016 16:49:37 +0000 (11:49 -0500)] 
Replace assert statements with self.assertXxx() calls

Sync with upstream, see github.com/python/typing/pull/205

10 years agosetup.py: add missing libm dependency
Victor Stinner [Tue, 19 Apr 2016 13:58:11 +0000 (15:58 +0200)] 
setup.py: add missing libm dependency

Issue #21668: Link audioop, _datetime, _ctypes_test modules to libm, except on
Mac OS X. Patch written by Xavier de Gaye.

10 years agoIssue #24838: Fix test_tarfile.py for non-utf8 filesystem encodings.
Lars Gustäbel [Tue, 19 Apr 2016 09:58:41 +0000 (11:58 +0200)] 
Issue #24838: Fix test_tarfile.py for non-utf8 filesystem encodings.

10 years agoIssue #24838: tarfile's ustar and gnu formats now correctly calculate name and
Lars Gustäbel [Tue, 19 Apr 2016 06:43:17 +0000 (08:43 +0200)] 
Issue #24838: tarfile's ustar and gnu formats now correctly calculate name and
link field limits for multibyte character encodings like utf-8.

10 years agoIssue #26615: Add missing __qualname__ entry to functools.update_wrapper() docs
Berker Peksag [Mon, 18 Apr 2016 18:20:50 +0000 (21:20 +0300)] 
Issue #26615: Add missing __qualname__ entry to functools.update_wrapper() docs

Patch by Xiang Zhang.

10 years agotyping.py: Consider ellipsis in TupleMeta.__eq__. By Kalle Tuure. github.com/python...
Guido van Rossum [Mon, 18 Apr 2016 14:37:41 +0000 (07:37 -0700)] 
typing.py: Consider ellipsis in TupleMeta.__eq__. By Kalle Tuure. github.com/python/typing/pull/201.

10 years agoFix test_asyncio.test_timeout_disable()
Victor Stinner [Mon, 18 Apr 2016 08:28:42 +0000 (10:28 +0200)] 
Fix test_asyncio.test_timeout_disable()

Issue #26777: Fix random failing of the test on the "AMD64 FreeBSD 9.x 3.5"
buildbot:

    File ".../Lib/test/test_asyncio/test_tasks.py", line 2398, in go
      self.assertTrue(0.09 < dt < 0.11, dt)
    AssertionError: False is not true : 0.11902812402695417

Replace "< 0.11" with "< 0.15".

10 years agoIssue #26657: Fix Windows directory traversal vulnerability with http.server
Martin Panter [Mon, 18 Apr 2016 03:45:18 +0000 (03:45 +0000)] 
Issue #26657: Fix Windows directory traversal vulnerability with http.server

Based on patch by Philipp Hagemeister.  This fixes a regression caused by
revision f4377699fd47.

10 years agoSync test_typing.py with upstream git repo (typing.py was already synced).
Guido van Rossum [Mon, 18 Apr 2016 00:52:05 +0000 (17:52 -0700)] 
Sync test_typing.py with upstream git repo (typing.py was already synced).

10 years agoIssue #26778: Fixed "a/an/and" typos in code comment and documentation.
Serhiy Storchaka [Sun, 17 Apr 2016 05:32:47 +0000 (08:32 +0300)] 
Issue #26778: Fixed "a/an/and" typos in code comment and documentation.

10 years agoIssue #26717: Stop encoding Latin-1-ized WSGI paths with UTF-8
Martin Panter [Sun, 17 Apr 2016 02:17:03 +0000 (02:17 +0000)] 
Issue #26717: Stop encoding Latin-1-ized WSGI paths with UTF-8

Patch by Anthony Sottile.

10 years agoIssue #26782: Acknowledge the incomplete status of __all__ in 3.5
Martin Panter [Sat, 16 Apr 2016 23:38:25 +0000 (23:38 +0000)] 
Issue #26782: Acknowledge the incomplete status of __all__ in 3.5

Handle is probably meant to be excluded, and STARTUPINFO will be added to
__all__ in 3.6.

10 years agofix slice cache finalization to use gc del
Benjamin Peterson [Sat, 16 Apr 2016 22:12:29 +0000 (15:12 -0700)] 
fix slice cache finalization to use gc del

10 years agotest_support -> support
Benjamin Peterson [Sat, 16 Apr 2016 22:02:23 +0000 (15:02 -0700)] 
test_support -> support

10 years agoadd gc support to slice (closes #26659)
Benjamin Peterson [Sat, 16 Apr 2016 21:47:12 +0000 (14:47 -0700)] 
add gc support to slice (closes #26659)

10 years agoIssue #26783: test_os.WalkTests.test_walk_topdown did't test fwalk and bytes.
Serhiy Storchaka [Sat, 16 Apr 2016 14:51:00 +0000 (17:51 +0300)] 
Issue #26783: test_os.WalkTests.test_walk_topdown did't test fwalk and bytes.
Patch by Aviv Palivoda.

10 years agoissue26775 - Improve test coverage for urllib.parse
Senthil Kumaran [Sat, 16 Apr 2016 14:33:15 +0000 (07:33 -0700)] 
issue26775 - Improve test coverage for urllib.parse
Patch contributed by Luiz Poleto.

10 years agoIssue #10838: Run test__all__() everywhere, even if poll() is not available
Martin Panter [Sat, 16 Apr 2016 11:28:10 +0000 (11:28 +0000)] 
Issue #10838: Run test__all__() everywhere, even if poll() is not available

10 years agoFix typos in code comments and documentation
Martin Panter [Sat, 16 Apr 2016 09:28:57 +0000 (09:28 +0000)] 
Fix typos in code comments and documentation

10 years agoIssue #26638: Fix links to some CLI options and section headings
Martin Panter [Sat, 16 Apr 2016 04:59:38 +0000 (04:59 +0000)] 
Issue #26638: Fix links to some CLI options and section headings

* Disable inappropriate links to Python interpreter options
* Correct link to CLI section in zipapp
* Make CLI section label in timeit less ambiguous

10 years agoIssue #25314: Remove confused statement about const argument
Martin Panter [Sat, 9 Apr 2016 03:49:48 +0000 (03:49 +0000)] 
Issue #25314: Remove confused statement about const argument

10 years agoIssue #25702: A --with-lto configure option has been added that will
Gregory P. Smith [Fri, 15 Apr 2016 23:57:04 +0000 (16:57 -0700)] 
Issue #25702: A --with-lto configure option has been added that will
enable link time optimizations at build time during a make profile-opt.

10 years agomerge heads
Gregory P. Smith [Fri, 15 Apr 2016 23:47:15 +0000 (16:47 -0700)] 
merge heads

10 years agoExclude super long running tests from the PROFILE_TASK for PGO
Gregory P. Smith [Fri, 15 Apr 2016 23:45:43 +0000 (16:45 -0700)] 
Exclude super long running tests from the PROFILE_TASK for PGO
builds.  multiprocessing and subprocess tests in particular
along with test_asyncore and test_gdb.  Running them does not
meaningfully add to the profile guidance.

10 years agoIssue #26535: Correct docs regarding the struct buffer size
Martin Panter [Fri, 15 Apr 2016 23:03:54 +0000 (23:03 +0000)] 
Issue #26535: Correct docs regarding the struct buffer size

10 years agoIssue #26760: Minimally document PyFrameObject
Brett Cannon [Fri, 15 Apr 2016 19:43:50 +0000 (12:43 -0700)] 
Issue #26760: Minimally document PyFrameObject

10 years agoIssue #25609: Backport typing.ContextManager.
Brett Cannon [Fri, 15 Apr 2016 17:51:30 +0000 (10:51 -0700)] 
Issue #25609: Backport typing.ContextManager.

This has no semantic impact as the class is guarded with a hasattr()
check; this is being done to keep typing.py in sync between Python 3.5
and 3.6 as requested by Guido.

10 years agoIssue #26764: Bacported tests for bytes formatting.
Serhiy Storchaka [Fri, 15 Apr 2016 11:13:37 +0000 (14:13 +0300)] 
Issue #26764: Bacported tests for bytes formatting.

10 years agoIssue #15984: Correct PyUnicode_FromObject() and _FromEncodedObject() docs
Martin Panter [Fri, 15 Apr 2016 00:56:21 +0000 (00:56 +0000)] 
Issue #15984: Correct PyUnicode_FromObject() and _FromEncodedObject() docs

10 years agoCorrect “an” → “a” with “Unicode”, “user”, “UTF”, etc
Martin Panter [Fri, 15 Apr 2016 02:14:19 +0000 (02:14 +0000)] 
Correct “an” → “a” with “Unicode”, “user”, “UTF”, etc

This affects documentation, code comments, and a debugging messages.

10 years agoIssue #26706: Update OpenSSL version in PCbuild/readme.txt
Zachary Ware [Thu, 14 Apr 2016 15:22:12 +0000 (10:22 -0500)] 
Issue #26706: Update OpenSSL version in PCbuild/readme.txt

Thanks to Shaun Walbridge for noticing.

10 years agoFix unused variable 'libver' warning in Modules/_ssl.c
Berker Peksag [Thu, 14 Apr 2016 13:48:48 +0000 (16:48 +0300)] 
Fix unused variable 'libver' warning in Modules/_ssl.c

It can be seen on various buildbots like 3.x.cea-indiana-amd64
and 3.x.murray-snowleopard:

/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Modules/_ssl.c:2227: warning: unused variable 'libver'

/Users/buildbot/buildarea/3.x.murray-snowleopard/build/Modules/_ssl.c:2227: warning: unused variable ‘libver’

10 years agoIssue #26716: Regenerate Argument Clinic code.
Serhiy Storchaka [Thu, 14 Apr 2016 09:28:01 +0000 (12:28 +0300)] 
Issue #26716: Regenerate Argument Clinic code.

10 years agoIssue26748: Enum classes should evaluate as True
Ethan Furman [Thu, 14 Apr 2016 06:53:45 +0000 (23:53 -0700)] 
Issue26748: Enum classes should evaluate as True

10 years agoIssue26748: Enum classes should evaluate as True
Ethan Furman [Thu, 14 Apr 2016 06:52:09 +0000 (23:52 -0700)] 
Issue26748: Enum classes should evaluate as True

10 years agoIssue #26718: super.__init__ no longer leaks memory if called multiple times.
Serhiy Storchaka [Wed, 13 Apr 2016 12:27:33 +0000 (15:27 +0300)] 
Issue #26718: super.__init__ no longer leaks memory if called multiple times.
NOTE: A direct call of super.__init__ is not endorsed!

10 years ago[minor] - Correct the docstring of locale.str. Patch by poleto.
Senthil Kumaran [Wed, 13 Apr 2016 06:14:14 +0000 (23:14 -0700)] 
[minor] - Correct the docstring of locale.str. Patch by poleto.

10 years agoIssue #25496: Document compresslevel defaults to 9, by Hamza T Khan
Martin Panter [Wed, 13 Apr 2016 03:24:06 +0000 (03:24 +0000)] 
Issue #25496: Document compresslevel defaults to 9, by Hamza T Khan

10 years agoCloses #26624: Adds validation of ucrtbase[d].dll version with warning for old versions.
Steve Dower [Wed, 13 Apr 2016 03:11:25 +0000 (20:11 -0700)] 
Closes #26624: Adds validation of ucrtbase[d].dll version with warning for old versions.

10 years agoconfigure: fix HAVE_GETRANDOM_SYSCALL check
Victor Stinner [Tue, 12 Apr 2016 20:34:58 +0000 (22:34 +0200)] 
configure: fix HAVE_GETRANDOM_SYSCALL check

syscall() function requires #include <unistd.h>.

10 years agoFix os.urandom() on Solaris 11.3
Victor Stinner [Tue, 12 Apr 2016 20:28:49 +0000 (22:28 +0200)] 
Fix os.urandom() on Solaris 11.3

Issue #26735: Fix os.urandom() on Solaris 11.3 and newer when reading more than
1,024 bytes: call getrandom() multiple times with a limit of 1024 bytes per
call.

10 years agoIssue #26647: Fix typo in test_grammar
Victor Stinner [Tue, 12 Apr 2016 16:33:41 +0000 (18:33 +0200)] 
Issue #26647: Fix typo in test_grammar

Patch written by Demur Rumed.

10 years agoClarify greedy-qualifier example, avoid HTML.
Georg Brandl [Tue, 12 Apr 2016 05:51:41 +0000 (07:51 +0200)] 
Clarify greedy-qualifier example, avoid HTML.

10 years agoIssue #26733: Fixed formatting line numbers in test_dis.
Serhiy Storchaka [Tue, 12 Apr 2016 05:46:28 +0000 (08:46 +0300)] 
Issue #26733: Fixed formatting line numbers in test_dis.
Based on patch by Xiang Zhang.

10 years agoIssue #25910: Fixed more links in the docs.
Serhiy Storchaka [Mon, 11 Apr 2016 14:32:33 +0000 (17:32 +0300)] 
Issue #25910: Fixed more links in the docs.

10 years agotyping doc: add versionadded 3.5
Victor Stinner [Mon, 11 Apr 2016 14:23:22 +0000 (16:23 +0200)] 
typing doc: add versionadded 3.5

10 years agoAdd a versionchanged directive to document addition of the new 'namereplace' error...
Berker Peksag [Mon, 11 Apr 2016 10:49:46 +0000 (13:49 +0300)] 
Add a versionchanged directive to document addition of the new 'namereplace' error handler.

Reported by Robert on docs@p.o.

10 years agoMerge heads
Serhiy Storchaka [Mon, 11 Apr 2016 09:38:54 +0000 (12:38 +0300)] 
Merge heads

10 years agoFix typos in mock and exceptions docs
Berker Peksag [Mon, 11 Apr 2016 09:23:04 +0000 (12:23 +0300)] 
Fix typos in mock and exceptions docs

The default value of __len__ is 0, not 1:

    >>> from unittest.mock import MagicMock
    >>> mock = MagicMock()
    >>> len(mock)
    0

Reported by Alex on docs@p.o.

Remove the remaining VMSError reference. VMS support is gone.

10 years agoIssue #25910: Fixed dead links in the docs.
Serhiy Storchaka [Mon, 11 Apr 2016 09:18:56 +0000 (12:18 +0300)] 
Issue #25910: Fixed dead links in the docs.

10 years agoIssue #26200: Restored more safe usages of Py_SETREF.
Serhiy Storchaka [Mon, 11 Apr 2016 06:53:37 +0000 (09:53 +0300)] 
Issue #26200: Restored more safe usages of Py_SETREF.

10 years agoIssue #14456: Remove contradiction about blocking signals from bad merge
Martin Panter [Mon, 11 Apr 2016 02:44:34 +0000 (02:44 +0000)] 
Issue #14456: Remove contradiction about blocking signals from bad merge

10 years agoIssue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREF
Serhiy Storchaka [Sun, 10 Apr 2016 15:05:40 +0000 (18:05 +0300)] 
Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREF
in places where Py_DECREF was used.

10 years agoIssue #26719: More efficient formatting of ints and floats in json.
Serhiy Storchaka [Sun, 10 Apr 2016 11:41:19 +0000 (14:41 +0300)] 
Issue #26719: More efficient formatting of ints and floats in json.

10 years agoIssue #25339: PYTHONIOENCODING now has priority over locale in setting the
Serhiy Storchaka [Sun, 10 Apr 2016 11:34:13 +0000 (14:34 +0300)] 
Issue #25339: PYTHONIOENCODING now has priority over locale in setting the
error handler for stdin and stdout.

10 years agoRemove relics of str8 (became bytes) and buffer (bytearray) type tests
Martin Panter [Sun, 10 Apr 2016 08:48:51 +0000 (08:48 +0000)] 
Remove relics of str8 (became bytes) and buffer (bytearray) type tests

Remove redundant tests now that str is unicode.

10 years agoIssue #26712: Unify (r)split, (l/r)strip tests into string_tests
Martin Panter [Sun, 10 Apr 2016 08:45:26 +0000 (08:45 +0000)] 
Issue #26712: Unify (r)split, (l/r)strip tests into string_tests

This eliminates a few redundant test cases.

10 years agoIssue #21069: Move test_fileno() from test_urllibnet and rewrite it
Martin Panter [Sat, 9 Apr 2016 14:03:17 +0000 (14:03 +0000)] 
Issue #21069: Move test_fileno() from test_urllibnet and rewrite it

* No longer attempts to close already freed socket file descriptor
* Use socket object to be compatible with Windows
* Do not use a timeout to avoid complication with non-blocking mode
* Use internal localhost server rather than depending on a third party
* Avoid trouble with buffered HTTP data by testing tunnelled CONNECT data

10 years agoIssue #26609: Fix HTTP server tests to request an absolute URL path
Martin Panter [Sat, 9 Apr 2016 04:56:10 +0000 (04:56 +0000)] 
Issue #26609: Fix HTTP server tests to request an absolute URL path

10 years agoUpdate fcntl doc: replace IOError with OSError
Victor Stinner [Sat, 9 Apr 2016 09:32:58 +0000 (11:32 +0200)] 
Update fcntl doc: replace IOError with OSError

Issue #26716. IOError is a deprecated alias to OSError since Python 3.3.

10 years agoIssue #17264: Fix cross refs and a markup error in extending/building.rst
Berker Peksag [Sat, 9 Apr 2016 06:08:05 +0000 (09:08 +0300)] 
Issue #17264: Fix cross refs and a markup error in extending/building.rst

10 years agoIssue #16329: Add .webm to mimetypes.types_map
Berker Peksag [Sat, 9 Apr 2016 05:00:20 +0000 (08:00 +0300)] 
Issue #16329: Add .webm to mimetypes.types_map

Patch by Giampaolo Rodola'.