]> granicus.if.org Git - python/log
python
11 years agominor docfix (reported at docs@python.org) trace.py argument is --count not --counts
Senthil Kumaran [Sun, 6 Apr 2014 17:58:51 +0000 (10:58 -0700)]
minor docfix (reported at docs@python.org) trace.py argument is --count not --counts

11 years agouse with statement
Benjamin Peterson [Fri, 4 Apr 2014 17:59:33 +0000 (13:59 -0400)]
use with statement

11 years agoexplicitly close file object (#21128)
Benjamin Peterson [Fri, 4 Apr 2014 17:56:44 +0000 (13:56 -0400)]
explicitly close file object (#21128)

11 years agoproperly explicitly close file (#21128)
Benjamin Peterson [Fri, 4 Apr 2014 17:56:26 +0000 (13:56 -0400)]
properly explicitly close file (#21128)

11 years agomake temporary read-only files writable, so rmtree can remove them (#21128)
Benjamin Peterson [Fri, 4 Apr 2014 17:55:56 +0000 (13:55 -0400)]
make temporary read-only files writable, so rmtree can remove them (#21128)

11 years agonote that the hash of an arbitrary object is only derived from its address (closes...
Benjamin Peterson [Fri, 4 Apr 2014 13:58:13 +0000 (09:58 -0400)]
note that the hash of an arbitrary object is only derived from its address (closes #21154)

Patch from Armin Rigo.

11 years agoIssue #21149: Improved thread-safety in logging cleanup during interpreter shutdown.
Vinay Sajip [Fri, 4 Apr 2014 09:47:53 +0000 (10:47 +0100)]
Issue #21149: Improved thread-safety in logging cleanup during interpreter shutdown.

11 years agoproperly close files in test_zipfile (#20887)
Benjamin Peterson [Thu, 3 Apr 2014 14:31:25 +0000 (10:31 -0400)]
properly close files in test_zipfile (#20887)

Patch by Matti Picus.

11 years agomake sure to test UnicodeEncodeError, too
Benjamin Peterson [Wed, 2 Apr 2014 19:51:38 +0000 (15:51 -0400)]
make sure to test UnicodeEncodeError, too

11 years agobail in unicode error's __str__ methods if the objects are not properly initialized...
Benjamin Peterson [Wed, 2 Apr 2014 16:15:06 +0000 (12:15 -0400)]
bail in unicode error's __str__ methods if the objects are not properly initialized (closes #21134)

11 years agoIssue 21125: minor wording tweak.
Raymond Hettinger [Wed, 2 Apr 2014 05:11:34 +0000 (22:11 -0700)]
Issue 21125: minor wording tweak.

11 years agoIssue #15067: Remove reference to a rejected PEP.
Zachary Ware [Tue, 1 Apr 2014 17:18:58 +0000 (12:18 -0500)]
Issue #15067: Remove reference to a rejected PEP.

Further explanation of the concept stands alone without this reference,
no need to potentially confuse people by bringing up a feature that
doesn't exist.

11 years agouse https docs url (#21115)
Benjamin Peterson [Mon, 31 Mar 2014 17:44:53 +0000 (13:44 -0400)]
use https docs url (#21115)

11 years agoadd Ian Beer
Benjamin Peterson [Mon, 31 Mar 2014 00:33:47 +0000 (20:33 -0400)]
add Ian Beer

11 years agofix overflow detection of strop.expandtabs
Benjamin Peterson [Mon, 31 Mar 2014 00:09:44 +0000 (20:09 -0400)]
fix overflow detection of strop.expandtabs

11 years agofix expandtabs overflow detection to be consistent and not rely on signed overflow
Benjamin Peterson [Sun, 30 Mar 2014 23:47:57 +0000 (19:47 -0400)]
fix expandtabs overflow detection to be consistent and not rely on signed overflow

11 years agoadd braces and fix indentation
Benjamin Peterson [Sun, 30 Mar 2014 23:23:24 +0000 (19:23 -0400)]
add braces and fix indentation

11 years agofix indentation and add braces
Benjamin Peterson [Sun, 30 Mar 2014 23:16:44 +0000 (19:16 -0400)]
fix indentation and add braces

11 years agosupport CDN purging
Benjamin Peterson [Sun, 30 Mar 2014 20:43:11 +0000 (16:43 -0400)]
support CDN purging

11 years agoIssue #21029: IDLE now colors print consistently as a keyword.
Raymond Hettinger [Sun, 30 Mar 2014 04:01:50 +0000 (21:01 -0700)]
Issue #21029: IDLE now colors print consistently as a keyword.

11 years agoMinor readability improvement.
Raymond Hettinger [Sat, 29 Mar 2014 18:49:11 +0000 (11:49 -0700)]
Minor readability improvement.

11 years agoIssue #21093: Prevent failures of ctypes test_macholib on OS X if a
Ned Deily [Sat, 29 Mar 2014 07:07:42 +0000 (00:07 -0700)]
Issue #21093: Prevent failures of ctypes test_macholib on OS X if a
copy of libz exists in $HOME/lib or /usr/local/lib.

11 years agoUpdate suspicious ignore file.
Georg Brandl [Fri, 28 Mar 2014 19:07:35 +0000 (20:07 +0100)]
Update suspicious ignore file.

11 years agoIssue #17654: Ensure IDLE menus are customized properly on OS X for
Ned Deily [Fri, 28 Mar 2014 03:47:04 +0000 (20:47 -0700)]
Issue #17654: Ensure IDLE menus are customized properly on OS X for
non-framework builds and for all variants of Tk.

11 years agoIssue #6676: Ensure a meaningful exception is raised when attempting
Ned Deily [Thu, 27 Mar 2014 23:38:32 +0000 (16:38 -0700)]
Issue #6676: Ensure a meaningful exception is raised when attempting
to parse more than one XML document per pyexpat xmlparser instance.
(Original patches by Hirokazu Yamamoto and Amaury Forgeot d'Arc, with
suggested wording by David Gutteridge)

11 years agoIssue #20939: Use www.example.com instead of www.python.org to avoid test
Ned Deily [Thu, 27 Mar 2014 06:25:02 +0000 (23:25 -0700)]
Issue #20939: Use www.example.com instead of www.python.org to avoid test
failures when ssl is not present.

11 years agobackport: #20145: assertRaisesRegexp now raises a TypeError on bad regex.
R David Murray [Tue, 25 Mar 2014 19:29:42 +0000 (15:29 -0400)]
backport: #20145: assertRaisesRegexp now raises a TypeError on bad regex.

Previously a non-string, non-regex second argument and no callable
argument could cause the test to appear to always pass.

11 years agoIssue #21038: Cleanup test_epoll.py
Victor Stinner [Tue, 25 Mar 2014 11:53:47 +0000 (12:53 +0100)]
Issue #21038: Cleanup test_epoll.py

Remove useless test and unused variables. Initial patch by Andreas Schwab.

11 years agoUpdated external link in documentation.
Vinay Sajip [Tue, 25 Mar 2014 11:20:22 +0000 (11:20 +0000)]
Updated external link in documentation.

11 years agoCloses #21045: make the Qt help build not look completely stupid
Georg Brandl [Tue, 25 Mar 2014 09:12:47 +0000 (10:12 +0100)]
Closes #21045: make the Qt help build not look completely stupid

11 years agoCloses #18456: Doc fix: PyDict_Update only works with dict-like objects, not key...
Georg Brandl [Tue, 25 Mar 2014 08:34:30 +0000 (09:34 +0100)]
Closes #18456: Doc fix: PyDict_Update only works with dict-like objects, not key-value sequences. Patch by priyapappachan.

11 years agoIssue #21058: NamedTemporaryFile() closes the FD on any error, not only Exception
Victor Stinner [Tue, 25 Mar 2014 08:10:59 +0000 (09:10 +0100)]
Issue #21058: NamedTemporaryFile() closes the FD on any error, not only Exception

11 years agoIssue #21058: Fix a leak of file descriptor in tempfile.NamedTemporaryFile(),
Victor Stinner [Tue, 25 Mar 2014 08:08:16 +0000 (09:08 +0100)]
Issue #21058: Fix a leak of file descriptor in tempfile.NamedTemporaryFile(),
close the file descriptor if os.fdopen() fails

11 years agoIssue #21043 - Remove CACert.org from the recommendations
Donald Stufft [Mon, 24 Mar 2014 23:49:42 +0000 (19:49 -0400)]
Issue #21043 - Remove CACert.org from the recommendations

11 years agoUse "x" instead of "i" for s.index and s.count entries in sequence ops table.
Zachary Ware [Thu, 20 Mar 2014 16:00:29 +0000 (11:00 -0500)]
Use "x" instead of "i" for s.index and s.count entries in sequence ops table.

Suggested by Bruce Esrig on docs@.

11 years agosync with 3.4 branch
Benjamin Peterson [Thu, 20 Mar 2014 01:54:59 +0000 (20:54 -0500)]
sync with 3.4 branch

11 years agoadd Nehal Hussain
Benjamin Peterson [Thu, 20 Mar 2014 01:52:17 +0000 (20:52 -0500)]
add Nehal Hussain

11 years agoIssue #20966: Fix Tkinter Resources link
Zachary Ware [Tue, 18 Mar 2014 14:18:53 +0000 (09:18 -0500)]
Issue #20966: Fix Tkinter Resources link

11 years agoUpdate doc version switcher for 3.4/3.5.
Georg Brandl [Mon, 17 Mar 2014 06:36:45 +0000 (07:36 +0100)]
Update doc version switcher for 3.4/3.5.

11 years agofix ctypes test alignment assumptions (closes #20946)
Benjamin Peterson [Sun, 16 Mar 2014 09:07:26 +0000 (10:07 +0100)]
fix ctypes test alignment assumptions (closes #20946)

Patch by Andreas Schwab.

11 years agoClose #16665: improve documentation for hex(). Patch by Jessica McKellar.
Antoine Pitrou [Sun, 16 Mar 2014 01:12:20 +0000 (02:12 +0100)]
Close #16665: improve documentation for hex().  Patch by Jessica McKellar.

11 years agosend people to the right editors page (#20938)
Benjamin Peterson [Sat, 15 Mar 2014 20:23:32 +0000 (15:23 -0500)]
send people to the right editors page (#20938)

11 years agoIssue #20939: Fix test_geturl failure in test_urllibnet due to
Ned Deily [Sat, 15 Mar 2014 20:14:15 +0000 (13:14 -0700)]
Issue #20939: Fix test_geturl failure in test_urllibnet due to
new redirect of http://www.python.org/ to https://www.python.org.

11 years agoremove runtime_library_dirs for _sqlite; it isn't needed
Benjamin Peterson [Sat, 15 Mar 2014 17:29:04 +0000 (12:29 -0500)]
remove runtime_library_dirs for _sqlite; it isn't needed

11 years agoClarify distutils’ clean command (ref #6142)
Éric Araujo [Thu, 13 Mar 2014 20:17:11 +0000 (16:17 -0400)]
Clarify distutils’ clean command (ref #6142)

11 years agoCloses #20908: Memory leak in Reg2Py()
Jesus Cea [Thu, 13 Mar 2014 16:33:43 +0000 (17:33 +0100)]
Closes #20908: Memory leak in Reg2Py()

11 years agoweaken callback count inequality (closes #20901)
Benjamin Peterson [Thu, 13 Mar 2014 02:51:52 +0000 (21:51 -0500)]
weaken callback count inequality (closes #20901)

11 years agoremove unnecessary word (closes #19060)
Benjamin Peterson [Thu, 13 Mar 2014 02:41:35 +0000 (21:41 -0500)]
remove unnecessary word (closes #19060)

Patch by Anastasia Filatova.

11 years agoMake distutils error messages more helpful (#11599).
Éric Araujo [Thu, 13 Mar 2014 02:19:39 +0000 (22:19 -0400)]
Make distutils error messages more helpful (#11599).

When running external programs such as a C compiler and getting an
error code, distutils only prints the program name.  With this change,
one can get the full command line by setting the DISTUTILS_DEBUG
environment variable.

This should have no compatibility issues, unless there are tools
that depend on the exact format of distutils debug messages.

11 years agoFix note markup (#16805).
Éric Araujo [Wed, 12 Mar 2014 23:35:54 +0000 (19:35 -0400)]
Fix note markup (#16805).

Patch by Tshepang Lekhonkhobe, reviewed by Georg Brandl.

11 years agouse ssl.PROTOCOL_SSLv23 for maximum compatibility (closes #20896)
Benjamin Peterson [Wed, 12 Mar 2014 23:05:53 +0000 (18:05 -0500)]
use ssl.PROTOCOL_SSLv23 for maximum compatibility (closes #20896)

11 years agoadd Sean Rodman
Benjamin Peterson [Wed, 12 Mar 2014 20:08:43 +0000 (15:08 -0500)]
add Sean Rodman

11 years agoFix missing import in bdist_rpm (#18045)
Éric Araujo [Wed, 12 Mar 2014 09:01:25 +0000 (05:01 -0400)]
Fix missing import in bdist_rpm (#18045)

11 years agoRestore missing part of error message (#4931)
Éric Araujo [Wed, 12 Mar 2014 07:19:33 +0000 (03:19 -0400)]
Restore missing part of error message (#4931)

11 years agoAvoid “error: None” messages from distutils (#4931).
Éric Araujo [Wed, 12 Mar 2014 07:14:48 +0000 (03:14 -0400)]
Avoid “error: None” messages from distutils (#4931).

Thanks to Amaury Forgeot d’Arc and Philip J. Eby.

11 years agoDefine what “updating” means in docs for open (#19627).
Éric Araujo [Wed, 12 Mar 2014 06:16:37 +0000 (02:16 -0400)]
Define what “updating” means in docs for open (#19627).

Original patch by Lina Clark.

11 years ago#20030: doc that TestLoader.discover returns a TestSuite.
R David Murray [Tue, 11 Mar 2014 22:12:25 +0000 (18:12 -0400)]
#20030: doc that TestLoader.discover returns a TestSuite.

Patch by Lita Cho.

11 years agosync pyporting howto from python 3 docs
Benjamin Peterson [Tue, 11 Mar 2014 19:28:37 +0000 (14:28 -0500)]
sync pyporting howto from python 3 docs

11 years ago#13530: port to 2.7 branch (document what os.lseek returns).
Georg Brandl [Tue, 11 Mar 2014 09:28:56 +0000 (10:28 +0100)]
#13530: port to 2.7 branch (document what os.lseek returns).

11 years agoCloses #20090: update Doc/README and the error message in sphinx-build.py to make
Georg Brandl [Mon, 10 Mar 2014 18:26:57 +0000 (19:26 +0100)]
Closes #20090: update Doc/README and the error message in sphinx-build.py to make
it clear that any Python 3.x is not usable with the checked out Sphinx.

11 years agonote that future_builtin's map is not quite like python 3's (closes #19363)
Benjamin Peterson [Sun, 9 Mar 2014 19:01:09 +0000 (14:01 -0500)]
note that future_builtin's map is not quite like python 3's (closes #19363)

Patch by Gareth Rees.

11 years agomerge
Georg Brandl [Sun, 9 Mar 2014 09:23:24 +0000 (10:23 +0100)]
merge

11 years agoImprove the default seeding in random module to use 32 bytes of entropy when available.
Raymond Hettinger [Sat, 8 Mar 2014 17:56:08 +0000 (09:56 -0800)]
Improve the default seeding in random module to use 32 bytes of entropy when available.

11 years agoIssue #20283: RE pattern methods now accept the string keyword parameters
Serhiy Storchaka [Thu, 6 Mar 2014 10:24:29 +0000 (12:24 +0200)]
Issue #20283: RE pattern methods now accept the string keyword parameters
as documented.  The pattern and source keyword parameters are left as
deprecated aliases.

11 years agoIssue #15618: Make turtle.py itself work when run from a module with
Terry Jan Reedy [Thu, 6 Mar 2014 04:15:57 +0000 (23:15 -0500)]
Issue #15618: Make turtle.py itself work when run from a module with
from __future__ import unicode_literals.  Initial patch by Juancarlo Añez.

The demos at the end of turtle.py appear to be the only test, so I changed
some of the strings to unicode with a u prefix.  If os.path.isfile or the Tk
image function have problems with Unicode input, that would be different issue.

11 years agoCorrect and improve comments in test_fileinput (closes #20501).
Serhiy Storchaka [Mon, 3 Mar 2014 19:16:27 +0000 (21:16 +0200)]
Correct and improve comments in test_fileinput (closes #20501).
Thanks Vajrasky Kok and Zachary Ware.

11 years agoadd Chris Angelico
Benjamin Peterson [Sun, 2 Mar 2014 00:16:12 +0000 (19:16 -0500)]
add Chris Angelico

11 years agofix test_posix.test_initgroups to work without supplemental groups (closes #20249)
Benjamin Peterson [Sun, 2 Mar 2014 00:14:12 +0000 (19:14 -0500)]
fix test_posix.test_initgroups to work without supplemental groups (closes #20249)

11 years agoIssue #20567: Delete class attribute gui widgets in idle tests.
Terry Jan Reedy [Thu, 27 Feb 2014 23:47:23 +0000 (18:47 -0500)]
Issue #20567: Delete class attribute gui widgets in idle tests.
Code patch by Serhiy Storchaka

11 years agoIssue #20501: fileinput module no longer reads whole file into memory when using
Serhiy Storchaka [Wed, 26 Feb 2014 18:59:08 +0000 (20:59 +0200)]
Issue #20501: fileinput module no longer reads whole file into memory when using
fileinput.hook_encoded.

11 years ago#20628: wrap lines to < 80.
R David Murray [Mon, 24 Feb 2014 20:36:45 +0000 (15:36 -0500)]
#20628: wrap lines to < 80.

11 years ago#20628: make it clear that DictReader/Writer *fieldnames* is a Sequence.
R David Murray [Mon, 24 Feb 2014 20:35:19 +0000 (15:35 -0500)]
#20628: make it clear that DictReader/Writer *fieldnames* is a Sequence.

Patch by Sean Rodman.

11 years agoCloses #20735: remove erroneous deprecated marker from stringprep docs
Georg Brandl [Mon, 24 Feb 2014 08:26:53 +0000 (09:26 +0100)]
Closes #20735: remove erroneous deprecated marker from stringprep docs

11 years agoIssue #9974: When untokenizing, use row info to insert backslash+newline.
Terry Jan Reedy [Mon, 24 Feb 2014 04:32:59 +0000 (23:32 -0500)]
Issue #9974: When untokenizing, use row info to insert backslash+newline.
Original patches by A. Kuchling and G. Rees (#12691).

11 years agoRestore title style
Antoine Pitrou [Sun, 23 Feb 2014 23:41:14 +0000 (00:41 +0100)]
Restore title style

11 years agoIssue #20743: Fix a reference leak in test_tcl.
Antoine Pitrou [Sun, 23 Feb 2014 18:39:06 +0000 (19:39 +0100)]
Issue #20743: Fix a reference leak in test_tcl.

11 years agouse sphinx from its own virtualenv (closes #20693)
Benjamin Peterson [Sat, 22 Feb 2014 06:32:50 +0000 (01:32 -0500)]
use sphinx from its own virtualenv (closes #20693)

11 years agoupdate logo url (#20695)
Benjamin Peterson [Thu, 20 Feb 2014 03:51:08 +0000 (22:51 -0500)]
update logo url (#20695)

11 years agoIssue #6815: os.path.expandvars() now supports non-ASCII Unicode environment
Serhiy Storchaka [Wed, 19 Feb 2014 21:27:37 +0000 (23:27 +0200)]
Issue #6815: os.path.expandvars() now supports non-ASCII Unicode environment
variables names and values.

11 years agoIssue #20510: Confirm that the code attribute of the SystemExit
Zachary Ware [Wed, 19 Feb 2014 16:43:13 +0000 (10:43 -0600)]
Issue #20510: Confirm that the code attribute of the SystemExit
exception raised by sys.exit is None when no code is given.

As suggested by Serhiy Storchaka.

11 years agoFixed grid_columnconfigure() and grid_rowconfigure() methods of
Serhiy Storchaka [Wed, 19 Feb 2014 16:33:30 +0000 (18:33 +0200)]
Fixed grid_columnconfigure() and grid_rowconfigure() methods of
Tkinter widgets to work in wantobjects=True mode.

11 years agoIssue #20510: Rewrote test_exit in test_sys to match existing comments
Zachary Ware [Tue, 18 Feb 2014 14:36:14 +0000 (08:36 -0600)]
Issue #20510: Rewrote test_exit in test_sys to match existing comments
and to modernize.  Initial patch by Gareth Rees.

11 years agowhitespace
Terry Jan Reedy [Tue, 18 Feb 2014 04:16:26 +0000 (23:16 -0500)]
whitespace

11 years agoIssue #8478: Untokenizer.compat now processes first token from iterator input.
Terry Jan Reedy [Tue, 18 Feb 2014 04:12:07 +0000 (23:12 -0500)]
Issue #8478: Untokenizer.compat now processes first token from iterator input.
Patch based on lines from Georg Brandl, Eric Snow, and Gareth Rees.

11 years agoUntokenize: An logically incorrect assert tested user input validity.
Terry Jan Reedy [Mon, 17 Feb 2014 21:45:38 +0000 (16:45 -0500)]
Untokenize: An logically incorrect assert tested user input validity.
Replace it with correct logic that raises ValueError for bad input.
Issues #8478 and #12691 reported the incorrect logic.
Add an Untokenize test case and an initial test method.

11 years agobackout 369bf9fbaeff
Benjamin Peterson [Sun, 16 Feb 2014 19:51:17 +0000 (14:51 -0500)]
backout 369bf9fbaeff

11 years agoremove tests for #19081
Benjamin Peterson [Sun, 16 Feb 2014 19:48:26 +0000 (14:48 -0500)]
remove tests for #19081

11 years agofinish backing out #19081
Benjamin Peterson [Sun, 16 Feb 2014 19:46:57 +0000 (14:46 -0500)]
finish backing out #19081

11 years agobackout #19081 to fix #20621
Benjamin Peterson [Sun, 16 Feb 2014 19:20:14 +0000 (14:20 -0500)]
backout #19081 to fix #20621

11 years agoadd missing test assertion (closes #20080)
Benjamin Peterson [Sat, 15 Feb 2014 18:19:59 +0000 (13:19 -0500)]
add missing test assertion (closes #20080)

Patch by Vajrasky Kok.

11 years agogive non-iterable TypeError a message (closes #20507)
Benjamin Peterson [Sat, 15 Feb 2014 18:02:52 +0000 (13:02 -0500)]
give non-iterable TypeError a message (closes #20507)

11 years ago#19890: fix typo in multiprocessing docs. Patch by Mike Short.
Ezio Melotti [Sat, 15 Feb 2014 14:58:52 +0000 (16:58 +0200)]
#19890: fix typo in multiprocessing docs.  Patch by Mike Short.

11 years ago#20634: fix typo in IDLE README noticed by Saimadhav Heblikar.
Ezio Melotti [Sat, 15 Feb 2014 11:01:08 +0000 (13:01 +0200)]
#20634: fix typo in IDLE README noticed by Saimadhav Heblikar.

11 years agofix links to builtin repr function (closes #20573)
Benjamin Peterson [Fri, 14 Feb 2014 19:10:39 +0000 (14:10 -0500)]
fix links to builtin repr function (closes #20573)

11 years agoIssue #20605: Make test_socket getaddrinfo OS X segfault test more robust.
Ned Deily [Fri, 14 Feb 2014 06:49:30 +0000 (22:49 -0800)]
Issue #20605: Make test_socket getaddrinfo OS X segfault test more robust.

11 years ago#19680: add back documentation for print and exec in the interactive help.
Ezio Melotti [Fri, 14 Feb 2014 05:04:15 +0000 (07:04 +0200)]
#19680: add back documentation for print and exec in the interactive help.

11 years agoIssue #17671: Fixed a crash when use non-initialized io.BufferedRWPair.
Serhiy Storchaka [Wed, 12 Feb 2014 08:52:07 +0000 (10:52 +0200)]
Issue #17671: Fixed a crash when use non-initialized io.BufferedRWPair.
Based on patch by Stephen Tu.

11 years agoIssue #19255: Clear error after failed PyDict_SetItem() on shutdown.
Serhiy Storchaka [Wed, 12 Feb 2014 07:54:48 +0000 (09:54 +0200)]
Issue #19255: Clear error after failed PyDict_SetItem() on shutdown.
This silences a Coverity complain.

11 years agoAdd references for Xcode and the Python Developer's Guide
Ned Deily [Wed, 12 Feb 2014 01:57:14 +0000 (17:57 -0800)]
Add references for Xcode and the Python Developer's Guide
to the internal Mac/README file.

11 years agoavoid name clash with posix_close (closes #20594)
Benjamin Peterson [Tue, 11 Feb 2014 15:16:16 +0000 (10:16 -0500)]
avoid name clash with posix_close (closes #20594)