]> granicus.if.org Git - python/log
python
8 years agoIssue #26268: Update the prepare_ssl.py script
Zachary Ware [Mon, 22 Feb 2016 10:02:30 +0000 (04:02 -0600)]
Issue #26268: Update the prepare_ssl.py script

It can now handle OpenSSL versions 1.0.2e and greater, which don't
include include files in include/.

Note that sources prepared by this script no longer support the old
project files for 2.7; you now have to have Perl available to use
the old build_ssl.py script with sources from svn.python.org.

8 years agoIssue #26261: Clarify NamedTemporaryFile name attribute vs file.name
Martin Panter [Mon, 22 Feb 2016 10:10:00 +0000 (10:10 +0000)]
Issue #26261: Clarify NamedTemporaryFile name attribute vs file.name

8 years agoFix errors in XML-RPC client example code
Martin Panter [Mon, 22 Feb 2016 09:04:22 +0000 (09:04 +0000)]
Fix errors in XML-RPC client example code

* http.client.HTTP (does not exist in Python 3) → HTTPConnection
* Server (deprecated) → ServerProxy
* Transport.send_request() grew a new “debug” parameter in Python 3 (revision
  a528f7f8f97a)

8 years agoIssue #26401: Fix compile() documentation
Berker Peksag [Sun, 21 Feb 2016 20:00:12 +0000 (22:00 +0200)]
Issue #26401: Fix compile() documentation

After 25032ec29315, compile() will raise a ValueError
if source contains null bytes.

Patch by SilentGhost.

8 years agoFix some typos in the NEWS file
Brett Cannon [Sun, 21 Feb 2016 17:20:51 +0000 (09:20 -0800)]
Fix some typos in the NEWS file

8 years agoList what classes from importlib.machinery don't work with importlib.util.LazyLoader
Brett Cannon [Sun, 21 Feb 2016 02:40:02 +0000 (18:40 -0800)]
List what classes from importlib.machinery don't work with importlib.util.LazyLoader

8 years agoIssue #26186: Remove an invalid type check in
Brett Cannon [Sun, 21 Feb 2016 02:35:41 +0000 (18:35 -0800)]
Issue #26186: Remove an invalid type check in
importlib.util.LazyLoader.

The class was checking its argument as to whether its implementation
of create_module() came directly from importlib.abc.Loader. The
problem is that the classes coming from imoprtlib.machinery do not
directly inherit from the ABC as they come from _frozen_importlib.
Because the documentation has always said that create_module() was
ignored, the check has simply been removed.

8 years agoIssue #26367: Have importlib.__init__() raise RuntimeError when
Brett Cannon [Sat, 20 Feb 2016 20:52:06 +0000 (12:52 -0800)]
Issue #26367: Have importlib.__init__() raise RuntimeError when
'level' is specified but no __package__.

This brings the function inline with builtins.__import__(). Thanks to
Manuel Jacob for the patch.

8 years agoAdded simple threading example to logging cookbook.
Vinay Sajip [Sat, 20 Feb 2016 19:02:46 +0000 (19:02 +0000)]
Added simple threading example to logging cookbook.

8 years agoIssues #22468, #21996, #22208: Clarify gettarinfo() and TarInfo usage
Martin Panter [Fri, 19 Feb 2016 23:34:56 +0000 (23:34 +0000)]
Issues #22468, #21996, #22208: Clarify gettarinfo() and TarInfo usage

* The Windows-specific binary notice was probably a Python 2 thing
* Make it more obvious gettarinfo() is based on stat(), and that non-ordinary
  files may need special care
* The file name must be text; suggest dummy arcname as a workaround
* Indicate TarInfo may be used directly, not just via gettarinfo()

8 years agoCloses #20169: fix inner links random doc.
Georg Brandl [Fri, 19 Feb 2016 07:57:38 +0000 (08:57 +0100)]
Closes #20169: fix inner links random doc.

8 years agoIssue #15608: Improve socketserver module documentation
Martin Panter [Fri, 19 Feb 2016 03:27:46 +0000 (03:27 +0000)]
Issue #15608: Improve socketserver module documentation

* Add headings for each concrete and mix-in class and list methods and
  attributes under them
* Fix class and method cross references
* Changed RequestHandler to BaseRequestHandler and added class heading
* Pull out Stream/DatagramRequestHandler definitions
* Reordered the request handler setup(), handle(), finish() methods
* Document constructor parameters for the server classes
* Remove version 2.6 not relevant for Python 3 documentation

8 years agoIssue #26309: Rewrite test in main thread and avoid race condition
Martin Panter [Fri, 19 Feb 2016 02:16:42 +0000 (02:16 +0000)]
Issue #26309: Rewrite test in main thread and avoid race condition

8 years agoIssue #16915: Clarify that mode parameter of socket.makefile() does not accept
Berker Peksag [Thu, 18 Feb 2016 15:34:00 +0000 (17:34 +0200)]
Issue #16915: Clarify that mode parameter of socket.makefile() does not accept
the same values as open().

8 years agoIssue #26309: Shut down socketserver request if verify_request() is false
Martin Panter [Thu, 18 Feb 2016 10:43:55 +0000 (10:43 +0000)]
Issue #26309: Shut down socketserver request if verify_request() is false

Patch by Aviv Palivoda.

8 years agofix typo (closes #26378)
Benjamin Peterson [Thu, 18 Feb 2016 07:42:46 +0000 (23:42 -0800)]
fix typo (closes #26378)

8 years agomerge 3.4 (closes #25939)
Benjamin Peterson [Thu, 18 Feb 2016 06:18:20 +0000 (22:18 -0800)]
merge 3.4 (closes #25939)

8 years agoopen the cert store readonly
Benjamin Peterson [Thu, 18 Feb 2016 06:13:19 +0000 (22:13 -0800)]
open the cert store readonly

Patch from Chi Hsuan Yen.

8 years agoIssue #26368: fix typo in asynchio stream doc, reported by Ryan Stuart.
Ned Deily [Tue, 16 Feb 2016 02:27:04 +0000 (13:27 +1100)]
Issue #26368: fix typo in asynchio stream doc, reported by Ryan Stuart.

8 years agoIssue #25924: Avoid unnecessary serialization of getaddrinfo(3) calls on OS X
Ned Deily [Mon, 15 Feb 2016 05:54:08 +0000 (16:54 +1100)]
Issue #25924: Avoid unnecessary serialization of getaddrinfo(3) calls on OS X
versions 10.5 or higher.  Original patch by A. Jesse Jiryu Davis.

8 years agoIssue #26268: Update OS X 10.5+ installer build to use OpenSSL 1.0.2f.
Ned Deily [Mon, 15 Feb 2016 05:44:38 +0000 (16:44 +1100)]
Issue #26268: Update OS X 10.5+ installer build to use OpenSSL 1.0.2f.

8 years agoIssue #26316: Fix variable name typo in Argument Clinic
Martin Panter [Sun, 14 Feb 2016 03:23:13 +0000 (03:23 +0000)]
Issue #26316: Fix variable name typo in Argument Clinic

8 years agoIssue #25887: Raise a RuntimeError when a coroutine is awaited more than once.
Yury Selivanov [Sat, 13 Feb 2016 22:59:05 +0000 (17:59 -0500)]
Issue #25887: Raise a RuntimeError when a coroutine is awaited more than once.

8 years agoFixes #26348: Corrected typos in activate.fish script.
Vinay Sajip [Sat, 13 Feb 2016 16:26:35 +0000 (16:26 +0000)]
Fixes #26348: Corrected typos in activate.fish script.

8 years agoIssue #25995: os.walk() no longer uses FDs proportional to the tree depth.
Serhiy Storchaka [Thu, 11 Feb 2016 11:29:28 +0000 (13:29 +0200)]
Issue #25995: os.walk() no longer uses FDs proportional to the tree depth.

8 years agoIssue #26325: Added test.support.check_no_resource_warning() to check that
Serhiy Storchaka [Thu, 11 Feb 2016 11:11:44 +0000 (13:11 +0200)]
Issue #26325: Added test.support.check_no_resource_warning() to check that
no ResourceWarning is emitted.

8 years agoHopefully clarify the difference between Optional[t] and an optional argument.
Guido van Rossum [Wed, 10 Feb 2016 17:48:58 +0000 (09:48 -0800)]
Hopefully clarify the difference between Optional[t] and an optional argument.

8 years agoIssue #25698: Prevent possible replacing imported module with the empty one
Serhiy Storchaka [Wed, 10 Feb 2016 08:31:20 +0000 (10:31 +0200)]
Issue #25698: Prevent possible replacing imported module with the empty one
if the stack is too deep.

8 years agoIssue #26304: Change "allows to <verb>" to "allows <verb>ing" or similar
Martin Panter [Wed, 10 Feb 2016 05:44:01 +0000 (05:44 +0000)]
Issue #26304: Change "allows to <verb>" to "allows <verb>ing" or similar

The original form is incorrect grammar and feels awkward, even though the
meaning is clear.

8 years agoIssues #26310, #26311: Fix typos in the documentation and code comments
Martin Panter [Wed, 10 Feb 2016 01:17:51 +0000 (01:17 +0000)]
Issues #26310, #26311: Fix typos in the documentation and code comments

8 years agoIssue #25983: Added tests for multi-argument type().
Serhiy Storchaka [Mon, 8 Feb 2016 18:28:03 +0000 (20:28 +0200)]
Issue #25983: Added tests for multi-argument type().

8 years agoClarify "cardinality of" as "number of elements in" as many readers do
Gregory P. Smith [Mon, 8 Feb 2016 17:58:40 +0000 (09:58 -0800)]
Clarify "cardinality of" as "number of elements in" as many readers do
not have a math vocabulary.

8 years agoUpdates build to use SHA256 hash when signing files.
Steve Dower [Mon, 8 Feb 2016 17:24:46 +0000 (09:24 -0800)]
Updates build to use SHA256 hash when signing files.

8 years agoIssue #26117: The os.scandir() iterator now closes file descriptor not only
Serhiy Storchaka [Mon, 8 Feb 2016 15:56:36 +0000 (17:56 +0200)]
Issue #26117: The os.scandir() iterator now closes file descriptor not only
when the iteration is finished, but when it was failed with error.

8 years agoIssue #25911: Restored support of bytes paths in os.walk() on Windows.
Serhiy Storchaka [Mon, 8 Feb 2016 14:23:28 +0000 (16:23 +0200)]
Issue #25911: Restored support of bytes paths in os.walk() on Windows.

8 years agoIssue #26045: Add UTF-8 suggestion to error in http.client
Martin Panter [Tue, 9 Feb 2016 10:20:52 +0000 (10:20 +0000)]
Issue #26045: Add UTF-8 suggestion to error in http.client

Based on patch by Guido van Rossum.

8 years agoIssue #26198: Make datetime error tests more lenient.
Serhiy Storchaka [Mon, 8 Feb 2016 07:25:53 +0000 (09:25 +0200)]
Issue #26198: Make datetime error tests more lenient.

8 years agoIssue #26198: Fixed error messages for some argument parsing errors.
Serhiy Storchaka [Sun, 7 Feb 2016 23:06:11 +0000 (01:06 +0200)]
Issue #26198: Fixed error messages for some argument parsing errors.
Fixed the documented about buffer overflow error for "es#" and "et#" format
units.

8 years agoIssue #25179: Preparatory cleanup of existing docs on string formatting
Martin Panter [Mon, 8 Feb 2016 01:34:09 +0000 (01:34 +0000)]
Issue #25179: Preparatory cleanup of existing docs on string formatting

* Various sections were pointing to the section on the string.Formatter
  class, when the section on the common format string syntax is probably more
  appropriate
* Fix references to various format() functions and methods
* Nested replacement fields may contain conversions and format specifiers,
  and this is tested; see Issue #19729 for instance

8 years agoFix userinfo example presented in urllib2 howto.
Senthil Kumaran [Sat, 6 Feb 2016 03:37:23 +0000 (19:37 -0800)]
Fix userinfo example presented in urllib2 howto.

8 years agoIssue #12923: Reset FancyURLopener's redirect counter even on exception
Martin Panter [Thu, 4 Feb 2016 06:01:35 +0000 (06:01 +0000)]
Issue #12923: Reset FancyURLopener's redirect counter even on exception

Based on patches by Brian Brazil and Daniel Rocco.

8 years agoIssue #25660: Fix a unittest and rlcompleter when readline isn't available
Yury Selivanov [Thu, 4 Feb 2016 19:00:26 +0000 (14:00 -0500)]
Issue #25660: Fix a unittest and rlcompleter when readline isn't available

8 years agoIssue #25660: Fix TAB key behaviour in REPL.
Yury Selivanov [Thu, 4 Feb 2016 06:23:05 +0000 (01:23 -0500)]
Issue #25660: Fix TAB key behaviour in REPL.

8 years agoPython for .NET has moved to Github.
Zachary Ware [Thu, 4 Feb 2016 04:05:46 +0000 (22:05 -0600)]
Python for .NET has moved to Github.

Reported by Denis Akhiyarov on docs@

8 years agoFix typo.
Zachary Ware [Tue, 2 Feb 2016 23:04:41 +0000 (17:04 -0600)]
Fix typo.

Reported by Jon Tetlak on docs@

8 years agoIssue #25945: Fixed bugs in functools.partial.
Serhiy Storchaka [Tue, 2 Feb 2016 16:45:17 +0000 (18:45 +0200)]
Issue #25945: Fixed bugs in functools.partial.
Fixed a crash when unpickle the functools.partial object with wrong state.
Fixed a leak in failed functools.partial constructor.
"args" and "keywords" attributes of functools.partial have now always types
tuple and dict correspondingly.

8 years agoIssue #26244: Clarify default zlib compression level in documentation
Martin Panter [Wed, 3 Feb 2016 07:06:33 +0000 (07:06 +0000)]
Issue #26244: Clarify default zlib compression level in documentation

Based on patch by Aviv Palivoda.

9 years agoIssue #26194: Inserting into a full deque to raise an IndexError
Raymond Hettinger [Tue, 2 Feb 2016 05:19:22 +0000 (21:19 -0800)]
Issue #26194:  Inserting into a full deque to raise an IndexError

9 years agoFix error message in asyncio.selector_events.
Victor Stinner [Mon, 1 Feb 2016 11:46:38 +0000 (12:46 +0100)]
Fix error message in asyncio.selector_events.

Patch written by Carlo Beccarini <hackdiablo.cb@gmail.com>.

9 years agotest_asyncio: fix test_timeout_time()
Victor Stinner [Mon, 1 Feb 2016 11:39:50 +0000 (12:39 +0100)]
test_asyncio: fix test_timeout_time()

Accept time delta up to 0.12 second, instead of 0.11, for the "AMD64 FreeBSD
9.x" buildbot slave.

8 years agoIssue #19587: Remove masked and redundant tests in test_bytes
Martin Panter [Tue, 2 Feb 2016 10:37:15 +0000 (10:37 +0000)]
Issue #19587: Remove masked and redundant tests in test_bytes

* test_contains() did not override anything
* test_expandtabs/upper/lower() in FixedStringTest were masking usable tests
  in string_tests. These tests now get run for bytearray() and bytes().
* test_expandtabs/upper/lower() in buffer_tests were only run on bytearray()
  and are redundant with string_tests

9 years agoIssue #26173: Separate bad cert file tests and client rejection test
Martin Panter [Mon, 1 Feb 2016 21:58:11 +0000 (21:58 +0000)]
Issue #26173: Separate bad cert file tests and client rejection test

Test test_wrong_cert() runs a server that rejects the client's certificate,
so ECONNRESET is reasonable in addition to SSLError. On the other hand, the
other three tests don't even need to run a server because they are just
testing the parsing of invalid certificate files.

Also fix a ResourceWarning by closing the wrapped socket.

9 years agoEnhance os.scandir() doc
Victor Stinner [Sun, 31 Jan 2016 17:36:41 +0000 (18:36 +0100)]
Enhance os.scandir() doc

Issue #26248, patch written by Ben Hoyt:

1) Clarify that the return values of is_dir()/is_file()/etc are cached
   separately for follow_symlinks True and False.
2) Be more specific about when the functions require a system call, and how it
   relates to caching and follow_symlinks.
3) DRY up common stuff between is_dir and is_file by saying "Caching, system
   calls made, and exceptions raised are as per is_dir" in is_file.
4) Tweak to the first paragraph of docs for is_dir/is_file to simplify: assume
   the follow_symlinks=True default, then note the follow_symlinks=False
   non-default case after.

9 years agoIssue #26242: Fix another one in importlib.rst
Berker Peksag [Sat, 30 Jan 2016 17:30:06 +0000 (19:30 +0200)]
Issue #26242: Fix another one in importlib.rst

9 years agoFix a markup error in socket.rst
Berker Peksag [Sat, 30 Jan 2016 17:23:29 +0000 (19:23 +0200)]
Fix a markup error in socket.rst

9 years agoIssue #23076: Path.glob() now raises a ValueError if it's called with an
Berker Peksag [Sat, 30 Jan 2016 15:50:48 +0000 (17:50 +0200)]
Issue #23076: Path.glob() now raises a ValueError if it's called with an
invalid pattern.

Patch by Thomas Nyberg.

9 years agoUpdate "Creating Virtual Environments" link in venv documentation
Berker Peksag [Sat, 30 Jan 2016 10:24:31 +0000 (12:24 +0200)]
Update "Creating Virtual Environments" link in venv documentation

9 years agoUpdate output of venv -h
Berker Peksag [Sat, 30 Jan 2016 10:17:10 +0000 (12:17 +0200)]
Update output of venv -h

* Update description of the --system-site-packages option
* Show --copies option in the usage

9 years agoIssue #4806: Avoid masking original TypeError in call with * unpacking
Martin Panter [Sun, 31 Jan 2016 06:30:56 +0000 (06:30 +0000)]
Issue #4806: Avoid masking original TypeError in call with * unpacking

Based on patch by Hagen Fürstenau and Daniel Urban.

9 years agoIssue #25934: Default to /fp:strict for ICC builds
Zachary Ware [Sat, 30 Jan 2016 01:08:55 +0000 (19:08 -0600)]
Issue #25934: Default to /fp:strict for ICC builds

9 years agoIssue #26173: Fix test_ssl confusion with non-existing cert and wrongcert.pem
Martin Panter [Sat, 30 Jan 2016 03:41:43 +0000 (03:41 +0000)]
Issue #26173: Fix test_ssl confusion with non-existing cert and wrongcert.pem

Testing for a non-existing certificate file is already done in test_errors().
Copy wrongcert.pem from Python 2 and use it to test the behaviour with a
mismatched certificate.

9 years agoIssue #26202: copy.deepcopy() now correctly copies range() objects with
Serhiy Storchaka [Thu, 28 Jan 2016 19:43:35 +0000 (21:43 +0200)]
Issue #26202: copy.deepcopy() now correctly copies range() objects with
non-atomic attributes.

9 years agoIssue #19883: Fixed possible integer overflows in zipimport.
Serhiy Storchaka [Thu, 28 Jan 2016 19:30:16 +0000 (21:30 +0200)]
Issue #19883: Fixed possible integer overflows in zipimport.

9 years agoMerge heads
Serhiy Storchaka [Thu, 28 Jan 2016 17:56:40 +0000 (19:56 +0200)]
Merge heads

9 years agoIssue #26198: Added tests for "es", "et", "es#", "et#" and "C" format units
Serhiy Storchaka [Thu, 28 Jan 2016 17:49:54 +0000 (19:49 +0200)]
Issue #26198: Added tests for "es", "et", "es#", "et#" and "C" format units
of PyArg_Parse*() functions.

9 years agoBackport fixes on test_eintr
Victor Stinner [Thu, 28 Jan 2016 17:13:45 +0000 (18:13 +0100)]
Backport fixes on test_eintr

* Issue #25234: Skip test_eintr.test_open() under OS X to avoid hanging
* Issue #25868: Try to make test_eintr.test_sigwaitinfo() more reliable
  especially on slow buildbots. Use a pipe to synchronize the parent and the
  child processes.

9 years agoIssue #24705: Add a test case for ef84d21f5292
Berker Peksag [Thu, 28 Jan 2016 14:58:00 +0000 (16:58 +0200)]
Issue #24705: Add a test case for ef84d21f5292

9 years agoWindows: Decode hostname from ANSI code page
Victor Stinner [Thu, 28 Jan 2016 14:41:01 +0000 (15:41 +0100)]
Windows: Decode hostname from ANSI code page

Issue #26227: On Windows, getnameinfo(), gethostbyaddr() and gethostbyname_ex()
functions of the socket module now decode the hostname from the ANSI code page
rather than UTF-8.

9 years agoAdd a link to PEP 384 in stable.rst
Berker Peksag [Thu, 28 Jan 2016 10:42:26 +0000 (12:42 +0200)]
Add a link to PEP 384 in stable.rst

9 years agoIssue #19023: Document ctypes array and pointer classes
Martin Panter [Fri, 29 Jan 2016 10:12:19 +0000 (10:12 +0000)]
Issue #19023: Document ctypes array and pointer classes

Also add some more tests. Based on patch by Sye van der Veen.

9 years agoIssue #26034: Improve wording of clear parameter
Berker Peksag [Thu, 28 Jan 2016 07:13:14 +0000 (09:13 +0200)]
Issue #26034: Improve wording of clear parameter

9 years agoIssue #26034: Sync documentation of --clear with its behavior
Berker Peksag [Thu, 28 Jan 2016 07:01:26 +0000 (09:01 +0200)]
Issue #26034: Sync documentation of --clear with its behavior

Most of the docs has already been updated in c3c188a0325a.

9 years agoIssue #26199: Fix broken link in unittest.mock-examples.rst
Berker Peksag [Thu, 28 Jan 2016 06:40:03 +0000 (08:40 +0200)]
Issue #26199: Fix broken link in unittest.mock-examples.rst

Patch by Raphael Das Gupta.

9 years agoIssue #26220: Remove outdated comment about a question mark
Martin Panter [Fri, 29 Jan 2016 04:01:16 +0000 (04:01 +0000)]
Issue #26220: Remove outdated comment about a question mark

9 years agoIssue #25507: revert incorrect movement of idleConf import in c548ad75160c.
Terry Jan Reedy [Wed, 27 Jan 2016 16:51:50 +0000 (11:51 -0500)]
Issue #25507: revert incorrect movement of idleConf import in c548ad75160c.
Augment htest to include all major IOBinding functions.

9 years agoFix resize_compact()
Victor Stinner [Wed, 27 Jan 2016 15:56:53 +0000 (16:56 +0100)]
Fix resize_compact()

Issue #26217: resize_compact() must set wstr_length to 0 after freeing the wstr
string. Otherwise, an assertion fails in _PyUnicode_CheckConsistency().

9 years agoIssue #26194: Fix undefined behavior for deque.insert() when len(d) == maxlen
Raymond Hettinger [Wed, 27 Jan 2016 05:44:16 +0000 (21:44 -0800)]
Issue #26194: Fix undefined behavior for deque.insert() when len(d) == maxlen

9 years agoRemove unnecessary test case comment in urllib.parse.py. These are asserted as test...
Senthil Kumaran [Tue, 26 Jan 2016 02:53:34 +0000 (18:53 -0800)]
Remove unnecessary test case comment in urllib.parse.py. These are asserted as test cases.

9 years agoFix a typo in a code example
Brett Cannon [Fri, 22 Jan 2016 22:03:27 +0000 (14:03 -0800)]
Fix a typo in a code example

9 years agodoc: i18n HTML templates
Victor Stinner [Fri, 22 Jan 2016 17:00:05 +0000 (18:00 +0100)]
doc: i18n HTML templates

Issue #25907: Use {% trans %} tags in HTML templates to ease the translation of
the documentation. The tag comes from Jinja templating system, used by Sphinx.

Patch written by Julien Palard.

9 years agocode_richcompare() now uses the constants types
Victor Stinner [Fri, 22 Jan 2016 11:33:12 +0000 (12:33 +0100)]
code_richcompare() now uses the constants types

Issue #25843: When compiling code, don't merge constants if they are equal but
have a different types. For example, "f1, f2 = lambda: 1, lambda: 1.0" is now
correctly compiled to two different functions: f1() returns 1 (int) and f2()
returns 1.0 (int), even if 1 and 1.0 are equal.

Add a new _PyCode_ConstantKey() private function.

9 years agomerge 3.4
Benjamin Peterson [Fri, 22 Jan 2016 06:03:55 +0000 (22:03 -0800)]
merge 3.4

9 years agoreject negative data_size
Benjamin Peterson [Fri, 22 Jan 2016 06:02:46 +0000 (22:02 -0800)]
reject negative data_size

9 years agominor clarification on Zipfile 'x' mode - exclusive creation of a file.
Senthil Kumaran [Fri, 22 Jan 2016 05:06:47 +0000 (21:06 -0800)]
minor clarification on Zipfile 'x' mode - exclusive creation of a file.

9 years agoMerge update to pip
Donald Stufft [Fri, 22 Jan 2016 02:56:06 +0000 (21:56 -0500)]
Merge update to pip

9 years agoUpgrade pip to 8.0.2
Donald Stufft [Fri, 22 Jan 2016 02:55:32 +0000 (21:55 -0500)]
Upgrade pip to 8.0.2

9 years agoIssue #18620: Improve Pool examples in multiprocessing documentation
Berker Peksag [Thu, 21 Jan 2016 21:59:49 +0000 (23:59 +0200)]
Issue #18620: Improve Pool examples in multiprocessing documentation

A single call to Pool.apply_async() will create only one process. To use all
of the pool's processes, it should be invoked multiple times:

    with Pool(processes=4) as pool:
        results = [pool.apply_async(func, ()) for i in range(4)]

Patch by Davin Potts.

9 years agoissue25909 - Correct the documentation of PyMapping_Items, PyMapping_Keys and
Senthil Kumaran [Thu, 21 Jan 2016 17:37:28 +0000 (09:37 -0800)]
issue25909 - Correct the documentation of PyMapping_Items, PyMapping_Keys and
PyMapping_Values in Include/abstract.h and Doc/c-api/mapping.rst.

Patch contributed by Sonali Gupta.

9 years agoIssue #26106: doc: Move text of licenses to parsed literal block
Victor Stinner [Thu, 21 Jan 2016 07:56:00 +0000 (08:56 +0100)]
Issue #26106: doc: Move text of licenses to parsed literal block

This change helps to ignore text of PSF, BEOPEN.com and CNRI licenses when
translating the documentation. Patch written by Julien Palard who is
translating Python 3.5 doc to french. Text of other licenses already used
preformatted format.

9 years agomerge 3.4 (#26171)
Benjamin Peterson [Thu, 21 Jan 2016 06:25:06 +0000 (22:25 -0800)]
merge 3.4 (#26171)

9 years agoprevent buffer overflow in get_data (closes #26171)
Benjamin Peterson [Thu, 21 Jan 2016 06:23:44 +0000 (22:23 -0800)]
prevent buffer overflow in get_data (closes #26171)

9 years agomerge 3.4
Benjamin Peterson [Thu, 21 Jan 2016 06:07:43 +0000 (22:07 -0800)]
merge 3.4

9 years agofix refleak in error condition
Benjamin Peterson [Thu, 21 Jan 2016 06:06:43 +0000 (22:06 -0800)]
fix refleak in error condition

9 years agomerge 3.4 (#26172)
Benjamin Peterson [Thu, 21 Jan 2016 06:02:47 +0000 (22:02 -0800)]
merge 3.4 (#26172)

9 years agoremove script from epub (closes #26172)
Benjamin Peterson [Thu, 21 Jan 2016 06:02:30 +0000 (22:02 -0800)]
remove script from epub (closes #26172)

9 years agoReplace fpgetmask() with fedisableexcept()
Victor Stinner [Wed, 20 Jan 2016 21:27:34 +0000 (22:27 +0100)]
Replace fpgetmask() with fedisableexcept()

Issue #24520: On FreeBSD, fpgetmask() was deprecated long time ago.
fedisableexcept() is now preferred.

9 years agoissue25982 - Add a class definition for managers.Namespace in the multiprocessing...
Senthil Kumaran [Wed, 20 Jan 2016 11:10:13 +0000 (03:10 -0800)]
issue25982 - Add a class definition for managers.Namespace in the multiprocessing docs.

9 years agoAdd _PyThreadState_UncheckedGet()
Victor Stinner [Wed, 20 Jan 2016 10:12:38 +0000 (11:12 +0100)]
Add _PyThreadState_UncheckedGet()

Issue #26154: Add a new private _PyThreadState_UncheckedGet() function which
gets the current thread state, but don't call Py_FatalError() if it is NULL.

Python 3.5.1 removed the _PyThreadState_Current symbol from the Python C API to
no more expose complex and private atomic types. Atomic types depends on the
compiler or can even depend on compiler options. The new function
_PyThreadState_UncheckedGet() allows to get the variable value without having
to care of the exact implementation of atomic types.

Changes:

* Replace direct usage of the _PyThreadState_Current variable with a call to
  _PyThreadState_UncheckedGet().
* In pystate.c, replace direct usage of the _PyThreadState_Current variable
  with the PyThreadState_GET() macro for readability.
* Document also PyThreadState_Get() in pystate.h

9 years agoIssue #26147: xmlrpc now works with strings not encodable with used
Serhiy Storchaka [Wed, 20 Jan 2016 08:34:27 +0000 (10:34 +0200)]
Issue #26147: xmlrpc now works with strings not encodable with used
non-UTF-8 encoding.

9 years agoIssue #5626: Remove misleading comment from socket.gethostname() documentation
Berker Peksag [Wed, 20 Jan 2016 06:45:37 +0000 (08:45 +0200)]
Issue #5626: Remove misleading comment from socket.gethostname() documentation

A machine can have more than one IP addresses so
socket.gethostbyname(socket.gethostname()) probably won't return the correct
one.