]>
granicus.if.org Git - python/log
Brett Cannon [Fri, 5 Dec 2014 20:17:31 +0000 (15:17 -0500)]
Issue #22394: Add a 'venv' command to Doc/Makefile.
This will create a venv using the interpreter specified by the PYTHON
variable for the Makefile that also install Sphinx. Typical usage is
expected to be:
cd Doc
make venv PYTHON=../python
make html PYTHON=venv/bin/python3
Brett Cannon [Fri, 5 Dec 2014 16:01:30 +0000 (11:01 -0500)]
Merge with 3.4
Brett Cannon [Fri, 5 Dec 2014 15:56:12 +0000 (10:56 -0500)]
Issue #22914: Update the Python 2/3 porting HOWTO to describe a more
automated process.
Victor Stinner [Fri, 5 Dec 2014 09:18:30 +0000 (10:18 +0100)]
(Merge 3.4) Issue #22599: Enhance tokenize.open() to be able to call it during
Python finalization.
Before the module kept a reference to the builtins module, but the module
attributes are cleared during Python finalization. Instead, keep directly a
reference to the open() function.
This enhancement is not perfect, calling tokenize.open() can still fail if
called very late during Python finalization. Usually, the function is called
by the linecache module which is called to display a traceback or emit a
warning.
Victor Stinner [Fri, 5 Dec 2014 09:17:10 +0000 (10:17 +0100)]
Issue #22599: Enhance tokenize.open() to be able to call it during Python
finalization.
Before the module kept a reference to the builtins module, but the module
attributes are cleared during Python finalization. Instead, keep directly a
reference to the open() function.
This enhancement is not perfect, calling tokenize.open() can still fail if
called very late during Python finalization. Usually, the function is called
by the linecache module which is called to display a traceback or emit a
warning.
Terry Jan Reedy [Fri, 5 Dec 2014 07:43:29 +0000 (02:43 -0500)]
Merge with 3.4. Edit Menus section of Idle doc.
Terry Jan Reedy [Fri, 5 Dec 2014 07:43:07 +0000 (02:43 -0500)]
Edit Menus section of Idle doc. Make menu entries match current Idle in order
and case. Edit some of the explanatory sentences and end all with a period.
Terry Jan Reedy [Fri, 5 Dec 2014 04:29:07 +0000 (23:29 -0500)]
Merge from 3.4 after patch separately committed as
697adefaba6b .
Yury Selivanov [Fri, 5 Dec 2014 03:48:47 +0000 (22:48 -0500)]
docs.inspect: Fix BoundArguments example. Issue #22998.
Yury Selivanov [Fri, 5 Dec 2014 03:47:44 +0000 (22:47 -0500)]
docs.inspect: Fix BoundArguments example. Issue #22998.
Victor Stinner [Fri, 5 Dec 2014 00:44:31 +0000 (01:44 +0100)]
Merge 3.4 (asyncio)
Victor Stinner [Fri, 5 Dec 2014 00:44:10 +0000 (01:44 +0100)]
Closes #22429, asyncio: Fix EventLoop.run_until_complete(), don't stop the
event loop if a BaseException is raised, because the event loop is already
stopped.
Victor Stinner [Fri, 5 Dec 2014 00:43:42 +0000 (01:43 +0100)]
Issue #22922: Fix ProactorEventLoop.close()
Call _stop_accept_futures() before sestting the _closed attribute, otherwise
call_soon() raises an error.
Victor Stinner [Fri, 5 Dec 2014 00:25:21 +0000 (01:25 +0100)]
Issue #22922: Fix ProactorEventLoop.close()
Call _stop_accept_futures() before sestting the _closed attribute, otherwise
call_soon() raises an error.
Victor Stinner [Thu, 4 Dec 2014 22:08:37 +0000 (23:08 +0100)]
Merge 3.4 (asyncio)
Victor Stinner [Thu, 4 Dec 2014 22:07:47 +0000 (23:07 +0100)]
Closes #22922: More EventLoop methods fail if the loop is closed. Initial patch
written by Torsten Landschoff.
create_task(), call_at(), call_soon(), call_soon_threadsafe() and
run_in_executor() now raise an error if the event loop is closed.
Victor Stinner [Thu, 4 Dec 2014 22:06:13 +0000 (23:06 +0100)]
Issue #22685: Fix test_pause_reading() of asyncio test_subprocess
* mock also resume_reading()
* ensure that resume_reading() is called
Victor Stinner [Thu, 4 Dec 2014 22:00:13 +0000 (23:00 +0100)]
asyncio: Initialize more Future and Task attributes in the class definition to
avoid attribute errors in destructors.
Terry Jan Reedy [Thu, 4 Dec 2014 06:26:35 +0000 (01:26 -0500)]
Merge with 3.4
Terry Jan Reedy [Thu, 4 Dec 2014 06:26:04 +0000 (01:26 -0500)]
Issue #3068: Document the new Configure Extensions dialog and menu entry.
Terry Jan Reedy [Thu, 4 Dec 2014 05:55:16 +0000 (00:55 -0500)]
Merge with 3.4
Terry Jan Reedy [Thu, 4 Dec 2014 05:54:59 +0000 (00:54 -0500)]
Issue #16893: For Idle doc, move index entries, copy no-subprocess section
from idlelib/help.txt, add 'C' comment, and remove obsolete ^Z comment
Original patch by Zach Ware.
Antoine Pitrou [Wed, 3 Dec 2014 19:03:11 +0000 (20:03 +0100)]
Fix #22987: update the compatibility matrix for a SSLv23 client.
Antoine Pitrou [Wed, 3 Dec 2014 19:00:56 +0000 (20:00 +0100)]
Fix #22987: update the compatibility matrix for a SSLv23 client.
Serhiy Storchaka [Wed, 3 Dec 2014 07:14:36 +0000 (09:14 +0200)]
Issue #14099: ZipFile.open() no longer reopen the underlying file. Objects
returned by ZipFile.open() can now operate independently of the ZipFile even
if the ZipFile was created by passing in a file-like object as the first
argument to the constructor.
Serhiy Storchaka [Wed, 3 Dec 2014 07:11:57 +0000 (09:11 +0200)]
Issue #14099: ZipFile.open() no longer reopen the underlying file. Objects
returned by ZipFile.open() can now operate independently of the ZipFile even
if the ZipFile was created by passing in a file-like object as the first
argument to the constructor.
Serhiy Storchaka [Tue, 2 Dec 2014 21:39:56 +0000 (23:39 +0200)]
Issue #17401: Output the closefd attribute as boolean.
Victor Stinner [Tue, 2 Dec 2014 17:01:07 +0000 (18:01 +0100)]
Merge 3.4 (asyncio doc)
Victor Stinner [Tue, 2 Dec 2014 16:57:04 +0000 (17:57 +0100)]
Closes #22475: asyncio doc, fix Task.get_stack() doc
Victor Stinner [Tue, 2 Dec 2014 16:52:57 +0000 (17:52 +0100)]
Merge 3.4 (asyncio doc)
Victor Stinner [Tue, 2 Dec 2014 16:52:45 +0000 (17:52 +0100)]
Close #22473: asyncio doc: rephrase Future with run_forever() example
Barry Warsaw [Tue, 2 Dec 2014 16:31:10 +0000 (11:31 -0500)]
Merge 3.4.
Barry Warsaw [Tue, 2 Dec 2014 16:30:43 +0000 (11:30 -0500)]
Fix the test to use an os.sep agnostic test. Hopefully this will fix the
Windows buildbots. Found by Jeremy Kloth.
Serhiy Storchaka [Tue, 2 Dec 2014 07:26:14 +0000 (09:26 +0200)]
Issue #20335: bytes constructor now raises TypeError when encoding or errors
is specified with non-string argument. Based on patch by Renaud Blanch.
Serhiy Storchaka [Tue, 2 Dec 2014 07:24:06 +0000 (09:24 +0200)]
Issue #20335: bytes constructor now raises TypeError when encoding or errors
is specified with non-string argument. Based on patch by Renaud Blanch.
Serhiy Storchaka [Tue, 2 Dec 2014 07:13:10 +0000 (09:13 +0200)]
Moved Misc/NEWS entry to right section.
Antoine Pitrou [Mon, 1 Dec 2014 23:20:03 +0000 (00:20 +0100)]
Fix uninitialized variable after #22676.
Barry Warsaw [Mon, 1 Dec 2014 23:17:29 +0000 (18:17 -0500)]
Trunk merge.
Barry Warsaw [Mon, 1 Dec 2014 23:16:12 +0000 (18:16 -0500)]
Merge 3.4.
Barry Warsaw [Mon, 1 Dec 2014 23:15:26 +0000 (18:15 -0500)]
Make this change a little more robust for up-merging.
Barry Warsaw [Mon, 1 Dec 2014 22:52:43 +0000 (17:52 -0500)]
- Issue #22966: Fix __pycache__ pyc file name clobber when pyc_compile is
asked to compile a source file containing multiple dots in the source file
name.
Barry Warsaw [Mon, 1 Dec 2014 22:23:55 +0000 (17:23 -0500)]
- Issue #22966: Fix __pycache__ pyc file name clobber when pyc_compile is
asked to compile a source file containing multiple dots in the source file
name.
Terry Jan Reedy [Mon, 1 Dec 2014 22:16:43 +0000 (17:16 -0500)]
Remove spurious header in middle of Library section.
I suspect this was leftover from a merge conflict resolution.
Barry Warsaw [Mon, 1 Dec 2014 22:10:10 +0000 (17:10 -0500)]
- Issue #22966: Fix __pycache__ pyc file name clobber when pyc_compile is
asked to compile a source file containing multiple dots in the source file
name.
Terry Jan Reedy [Mon, 1 Dec 2014 22:08:53 +0000 (17:08 -0500)]
Merge with 3.4
Terry Jan Reedy [Mon, 1 Dec 2014 21:59:09 +0000 (16:59 -0500)]
Add NEWS items for Idle patches and a turtledemo patch.
Serhiy Storchaka [Mon, 1 Dec 2014 16:56:54 +0000 (18:56 +0200)]
Issue #22975: Close block at right place.
Serhiy Storchaka [Mon, 1 Dec 2014 16:56:28 +0000 (18:56 +0200)]
Issue #22975: Close block at right place.
Serhiy Storchaka [Mon, 1 Dec 2014 16:30:14 +0000 (18:30 +0200)]
Removed duplicated words in in comments and docs.
Serhiy Storchaka [Mon, 1 Dec 2014 16:28:43 +0000 (18:28 +0200)]
Removed duplicated words in in comments and docs.
Serhiy Storchaka [Mon, 1 Dec 2014 11:10:12 +0000 (13:10 +0200)]
Issue #21032. Fixed socket leak if HTTPConnection.getresponse() fails.
Original patch by Martin Panter.
Serhiy Storchaka [Mon, 1 Dec 2014 11:07:45 +0000 (13:07 +0200)]
Issue #21032. Fixed socket leak if HTTPConnection.getresponse() fails.
Original patch by Martin Panter.
Serhiy Storchaka [Mon, 1 Dec 2014 10:47:16 +0000 (12:47 +0200)]
Fixed issue number in Misc/NEWS for issue #22407.
Serhiy Storchaka [Mon, 1 Dec 2014 09:50:07 +0000 (11:50 +0200)]
Issue #21032: Deprecated the use of re.LOCALE flag with str patterns or
re.ASCII. It was newer worked.
Serhiy Storchaka [Mon, 1 Dec 2014 09:25:21 +0000 (11:25 +0200)]
Removed unused function linecol() (added in issue #22578 by mistake).
Serhiy Storchaka [Mon, 1 Dec 2014 09:08:27 +0000 (11:08 +0200)]
Issue #22838: All test_re tests now work with unittest test discovery.
Serhiy Storchaka [Mon, 1 Dec 2014 09:06:45 +0000 (11:06 +0200)]
Issue #22838: All test_re tests now work with unittest test discovery.
Serhiy Storchaka [Mon, 1 Dec 2014 08:51:37 +0000 (10:51 +0200)]
Issue #22924: Scripts gprof2html.py and highlight.py now use html.escape()
instead of deperecated cgi.escape(). Original patch by Raymond Hettinger.
Serhiy Storchaka [Mon, 1 Dec 2014 08:50:33 +0000 (10:50 +0200)]
Issue #22924: Scripts gprof2html.py and highlight.py now use html.escape()
instead of deperecated cgi.escape(). Original patch by Raymond Hettinger.
Serhiy Storchaka [Sun, 30 Nov 2014 18:39:04 +0000 (20:39 +0200)]
Issue #22902: The "ip" command is now used on Linux to determine MAC address
in uuid.getnode(). Pach by Bruno Cauet.
Benjamin Peterson [Sun, 30 Nov 2014 16:51:16 +0000 (11:51 -0500)]
merge 3.4 (#9179)
Benjamin Peterson [Sun, 30 Nov 2014 16:49:00 +0000 (11:49 -0500)]
backout
9fcf4008b626 (#9179) for further consideration
Benjamin Peterson [Sun, 30 Nov 2014 04:38:23 +0000 (23:38 -0500)]
merge 3.4
Benjamin Peterson [Sun, 30 Nov 2014 04:38:17 +0000 (23:38 -0500)]
context is keyword-only
Benjamin Peterson [Sun, 30 Nov 2014 04:34:30 +0000 (23:34 -0500)]
merge 3.4 (#22960)
Benjamin Peterson [Sun, 30 Nov 2014 04:32:57 +0000 (23:32 -0500)]
add context parameter to xmlrpclib.ServerProxy (#22960)
Patch by Alex Gaynor.
Antoine Pitrou [Sat, 29 Nov 2014 14:56:38 +0000 (15:56 +0100)]
Close issue #22895: fix test failure introduced by the fix for issue #22462.
Antoine Pitrou [Sat, 29 Nov 2014 14:56:07 +0000 (15:56 +0100)]
Close issue #22895: fix test failure introduced by the fix for issue #22462.
Ned Deily [Fri, 28 Nov 2014 23:22:15 +0000 (15:22 -0800)]
Issue #16113: Also remove test_case_sha3_224_huge
Ned Deily [Fri, 28 Nov 2014 23:21:12 +0000 (15:21 -0800)]
Issue #16113: Also remove test_case_sha3_224_huge
Raymond Hettinger [Fri, 28 Nov 2014 22:52:14 +0000 (14:52 -0800)]
Minor code cleanup.
Victor Stinner [Fri, 28 Nov 2014 21:42:06 +0000 (22:42 +0100)]
Issue #22685, asyncio: resume_reading() must also be called in test_pause_reading()
Victor Stinner [Fri, 28 Nov 2014 21:37:16 +0000 (22:37 +0100)]
Issue #22685, asyncio: mock also resume_reading in test_pause_reading()
Berker Peksag [Fri, 28 Nov 2014 21:28:06 +0000 (23:28 +0200)]
Issue #22389: Add contextlib.redirect_stderr().
Victor Stinner [Fri, 28 Nov 2014 17:02:16 +0000 (18:02 +0100)]
Merge 3.4 (asyncio)
Victor Stinner [Fri, 28 Nov 2014 17:02:03 +0000 (18:02 +0100)]
Issue #22685: Debug test_pause_reading() on FreeBSD
Victor Stinner [Fri, 28 Nov 2014 16:46:05 +0000 (17:46 +0100)]
(Merge 3.4) Closes #22348: Rephrase asyncio.StreamWriter.drain() documentation
Patch written by Martin Richard.
Victor Stinner [Fri, 28 Nov 2014 16:45:41 +0000 (17:45 +0100)]
Closes #22348: Rephrase asyncio.StreamWriter.drain() documentation
Patch written by Martin Richard.
Victor Stinner [Fri, 28 Nov 2014 12:58:53 +0000 (13:58 +0100)]
(Merge 3.4) asyncio doc: reformat event loop policy doc
Victor Stinner [Fri, 28 Nov 2014 12:58:28 +0000 (13:58 +0100)]
asyncio doc: reformat event loop policy doc
Victor Stinner [Fri, 28 Nov 2014 12:28:25 +0000 (13:28 +0100)]
Issue #21356: Make ssl.RAND_egd() optional to support LibreSSL. The
availability of the function is checked during the compilation.
Patch written by Bernard Spil.
Victor Stinner [Fri, 28 Nov 2014 12:16:03 +0000 (13:16 +0100)]
(Merge 3.4) asyncio doc: explain how to pass keywords to callbacks
(functools.partial)
Victor Stinner [Fri, 28 Nov 2014 12:15:41 +0000 (13:15 +0100)]
asyncio doc: explain how to pass keywords to callbacks (functools.partial)
Benjamin Peterson [Fri, 28 Nov 2014 02:41:36 +0000 (20:41 -0600)]
merge 3.4 (#16561)
Benjamin Peterson [Fri, 28 Nov 2014 02:39:02 +0000 (20:39 -0600)]
give a nice message when installer is launched w/o admin rights (closes #16561)
Serhiy Storchaka [Thu, 27 Nov 2014 22:49:50 +0000 (00:49 +0200)]
Issue #21280: Fixed a bug in shutil.make_archive() when create an archive of
current directory in current directory.
Serhiy Storchaka [Thu, 27 Nov 2014 22:48:46 +0000 (00:48 +0200)]
Issue #21280: Fixed a bug in shutil.make_archive() when create an archive of
current directory in current directory.
Serhiy Storchaka [Thu, 27 Nov 2014 22:11:07 +0000 (00:11 +0200)]
Issue #22314: pydoc now works when the LINES environment variable is set.
Serhiy Storchaka [Thu, 27 Nov 2014 22:09:29 +0000 (00:09 +0200)]
Issue #22314: pydoc now works when the LINES environment variable is set.
Serhiy Storchaka [Thu, 27 Nov 2014 20:14:30 +0000 (22:14 +0200)]
Issue #22915: SAX parser now supports files opened with file descriptor or
bytes path.
Serhiy Storchaka [Thu, 27 Nov 2014 20:13:16 +0000 (22:13 +0200)]
Issue #22915: SAX parser now supports files opened with file descriptor or
bytes path.
Serhiy Storchaka [Thu, 27 Nov 2014 17:45:31 +0000 (19:45 +0200)]
Issue #21514: The documentation of the json module now refers to new JSON RFC
7159 instead of obsoleted RFC 4627.
Serhiy Storchaka [Thu, 27 Nov 2014 17:41:47 +0000 (19:41 +0200)]
Issue #21514: The documentation of the json module now refers to new JSON RFC
7159 instead of obsoleted RFC 4627.
Serhiy Storchaka [Thu, 27 Nov 2014 15:46:15 +0000 (17:46 +0200)]
Issue #22609: Revert changes in UserDict. They conflicted with existing tests.
Serhiy Storchaka [Thu, 27 Nov 2014 15:45:44 +0000 (17:45 +0200)]
Issue #22609: Revert changes in UserDict. They conflicted with existing tests.
Serhiy Storchaka [Thu, 27 Nov 2014 14:35:26 +0000 (16:35 +0200)]
Issue #22609: Constructors and update methods of mapping classes in the
collections module now accept the self keyword argument.
Serhiy Storchaka [Thu, 27 Nov 2014 14:25:51 +0000 (16:25 +0200)]
Issue #22609: Constructors and update methods of mapping classes in the
collections module now accept the self keyword argument.
Zachary Ware [Thu, 27 Nov 2014 05:56:10 +0000 (23:56 -0600)]
Merge with 3.4
Zachary Ware [Thu, 27 Nov 2014 05:44:25 +0000 (23:44 -0600)]
pydoc: Add a note about setting PAGER to affect console output pagination.
Suggested by James Lowden on docs@.
Ethan Furman [Thu, 27 Nov 2014 05:17:53 +0000 (21:17 -0800)]
Issue22780: reword NotImplemented docs to emphasise should