]> granicus.if.org Git - python/log
python
12 years agoIssue #15043: skip test_gdb if the custom hooks can't be loaded (backport from 3.x)
Nick Coghlan [Sun, 17 Jun 2012 09:03:39 +0000 (19:03 +1000)]
Issue #15043: skip test_gdb if the custom hooks can't be loaded (backport from 3.x)

12 years agoIssue #15044: Handle Fedora 17's approach to ndbm compatibility (backport from 3.x)
Nick Coghlan [Sun, 17 Jun 2012 08:35:39 +0000 (18:35 +1000)]
Issue #15044: Handle Fedora 17's approach to ndbm compatibility (backport from 3.x)

12 years agoIssue #15054: Fix incorrect tokenization of 'b' and 'br' string literals.
Meador Inge [Sun, 17 Jun 2012 02:05:50 +0000 (21:05 -0500)]
Issue #15054: Fix incorrect tokenization of 'b' and 'br' string literals.

Patch by Serhiy Storchaka.

12 years ago#15036: Make a repeated changes and flushes work with single-file mailboxes
Petri Lehtinen [Fri, 15 Jun 2012 17:50:51 +0000 (20:50 +0300)]
#15036: Make a repeated changes and flushes work with single-file mailboxes

12 years agoIssue #14933: fix misleading doc about weakref support in extension types.
Antoine Pitrou [Fri, 15 Jun 2012 17:11:31 +0000 (19:11 +0200)]
Issue #14933: fix misleading doc about weakref support in extension types.

12 years agoSkip test_bigmem.test_unicode_repr_oflw, since it crashes (issue #14904).
Antoine Pitrou [Fri, 15 Jun 2012 16:33:48 +0000 (18:33 +0200)]
Skip test_bigmem.test_unicode_repr_oflw, since it crashes (issue #14904).

12 years agoIssue #15060: better fix, thanks to review on #python-dev
Sandro Tosi [Wed, 13 Jun 2012 22:36:54 +0000 (00:36 +0200)]
Issue #15060: better fix, thanks to review on #python-dev

12 years agoIssue #15060: fix typo in socket doc; Patch by anatoly techtonik
Sandro Tosi [Wed, 13 Jun 2012 21:58:35 +0000 (23:58 +0200)]
Issue #15060: fix typo in socket doc; Patch by anatoly techtonik

12 years agoIssue #10133: Make multiprocessing deallocate buffer if socket read fails.
Richard Oudkerk [Mon, 11 Jun 2012 14:11:35 +0000 (15:11 +0100)]
Issue #10133: Make multiprocessing deallocate buffer if socket read fails.

Patch by Hallvard B Furuseth.

12 years agoMinor formatting fix=up
Raymond Hettinger [Sun, 10 Jun 2012 00:27:23 +0000 (17:27 -0700)]
Minor formatting fix=up

12 years agoWrap fat lines and improve some variable names.
Raymond Hettinger [Sat, 9 Jun 2012 20:04:29 +0000 (13:04 -0700)]
Wrap fat lines and improve some variable names.

12 years agoCode cleanups
Raymond Hettinger [Fri, 8 Jun 2012 20:24:12 +0000 (13:24 -0700)]
Code cleanups

12 years ago#8652: update errors tutorial.
R David Murray [Fri, 8 Jun 2012 01:46:44 +0000 (21:46 -0400)]
#8652: update errors tutorial.

The tutorial had some outdated examples.  The patch also adds a caution
about the meaning of parens in the except statement.

Patch by Marien Zwart.

12 years agoNEWS fixes
Terry Jan Reedy [Thu, 7 Jun 2012 23:50:30 +0000 (19:50 -0400)]
NEWS fixes

12 years agoIssue #13854: Properly handle non-integer, non-string arg to SystemExit
Richard Oudkerk [Wed, 6 Jun 2012 18:01:14 +0000 (19:01 +0100)]
Issue #13854: Properly handle non-integer, non-string arg to SystemExit

Previously multiprocessing only expected int or str.  It also wrongly
used an exit code of 1 when the argument was a string instead of zero.

12 years agoIssue #12157: pool.map() does not handle empty iterable correctly
Richard Oudkerk [Wed, 6 Jun 2012 16:52:18 +0000 (17:52 +0100)]
Issue #12157: pool.map() does not handle empty iterable correctly

Initial patch by mouad

12 years agoNudge readers towards a more accurate mental model for loop else clauses (Backport...
Nick Coghlan [Thu, 7 Jun 2012 12:57:35 +0000 (22:57 +1000)]
Nudge readers towards a more accurate mental model for loop else clauses (Backport from 3.x)

12 years agoIssue 12510: Expand 2 bare excepts. Improve comments. Change deceptive name
Terry Jan Reedy [Sun, 3 Jun 2012 04:58:36 +0000 (00:58 -0400)]
Issue 12510: Expand 2 bare excepts. Improve comments. Change deceptive name
'name' to 'expression' as the latter is what the string actually represents.
The bug in this issue was only catching NameError and AttributeError when
evaluating an expression that was not necessarily a name.

12 years agoIssue 10365: Add and replace comments; condense defaulted attribute access.
Terry Jan Reedy [Sun, 3 Jun 2012 00:22:35 +0000 (20:22 -0400)]
Issue 10365: Add and replace comments; condense defaulted attribute access.
Code patch by Roger Serwy.

12 years agobackport c4bd68be5fc6 to 2.7
Sandro Tosi [Sat, 2 Jun 2012 21:40:59 +0000 (23:40 +0200)]
backport c4bd68be5fc6 to 2.7

12 years agorefer to time.strftime
Sandro Tosi [Sat, 2 Jun 2012 16:21:06 +0000 (18:21 +0200)]
refer to time.strftime

12 years ago#14957: fix doc typo.
R David Murray [Sat, 2 Jun 2012 15:21:31 +0000 (11:21 -0400)]
#14957: fix doc typo.

12 years agoImprove tooltips for splitlines() by showing that the default for keepends is False.
Raymond Hettinger [Sat, 2 Jun 2012 05:42:58 +0000 (01:42 -0400)]
Improve tooltips for splitlines() by showing that the default for keepends is False.

12 years ago#14957: clarify splitlines docs.
R David Murray [Fri, 1 Jun 2012 20:21:06 +0000 (16:21 -0400)]
#14957: clarify splitlines docs.

Initial patch by Michael Driscoll, I added the example.

12 years agoIssue #14962: Update text coloring in IDLE shell window after changing
Ned Deily [Thu, 31 May 2012 16:17:29 +0000 (09:17 -0700)]
Issue #14962: Update text coloring in IDLE shell window after changing
options.  Patch by Roger Serwy.

12 years agoChanged comment on test skip.
Vinay Sajip [Thu, 31 May 2012 11:35:13 +0000 (12:35 +0100)]
Changed comment on test skip.

12 years agoIssue #10997: Prevent a duplicate entry in IDLE's "Recent Files" menu.
Ned Deily [Tue, 29 May 2012 17:42:34 +0000 (10:42 -0700)]
Issue #10997: Prevent a duplicate entry in IDLE's "Recent Files" menu.

12 years agoIssue #14775: Fix a potential quadratic dict build-up due to the garbage collector...
Antoine Pitrou [Mon, 28 May 2012 20:22:34 +0000 (22:22 +0200)]
Issue #14775: Fix a potential quadratic dict build-up due to the garbage collector repeatedly trying to untrack dicts.
Additional comments by Tim Silk.

12 years agoIssue #9041: raised exception is misleading
Meador Inge [Mon, 28 May 2012 18:52:59 +0000 (13:52 -0500)]
Issue #9041: raised exception is misleading

An issue in ctypes.c_longdouble, ctypes.c_double, and ctypes.c_float that
caused an incorrect exception to be returned in the case of overflow has been
fixed.

12 years agoIssue12510: Attempting to get invalid tooltip no longer closes Idle.
Terry Jan Reedy [Mon, 28 May 2012 01:28:42 +0000 (21:28 -0400)]
Issue12510: Attempting to get invalid tooltip no longer closes Idle.
Original patch by Roger Serwy.

12 years ago#11785: fix the :mod: references in email package submodule titles.
R David Murray [Sun, 27 May 2012 21:13:54 +0000 (17:13 -0400)]
#11785: fix the :mod: references in email package submodule titles.

12 years ago#10365 Trim trailing whitespace
Terry Jan Reedy [Sun, 27 May 2012 00:45:35 +0000 (20:45 -0400)]
#10365 Trim trailing whitespace

12 years agoIssue #10365: File open dialog now works instead of crashing
Terry Jan Reedy [Sun, 27 May 2012 00:33:32 +0000 (20:33 -0400)]
Issue #10365: File open dialog now works instead of crashing
even when parent window is closed. Patch by Roger Serwy.

12 years agoIssue #14876: Use user-selected font for highlight configuration.
Terry Jan Reedy [Sat, 26 May 2012 20:55:43 +0000 (16:55 -0400)]
Issue #14876: Use user-selected font for highlight configuration.
Patch by Roger Serwy.

12 years agoIssue #14881: Allow normal non-main thread to spawn a dummy process
Richard Oudkerk [Fri, 25 May 2012 11:56:33 +0000 (12:56 +0100)]
Issue #14881: Allow normal non-main thread to spawn a dummy process

Fix suggested by Itay Brandes

12 years ago#4841: Fix FileIO constructor to honor closefd when called repeatedly
Hynek Schlawack [Fri, 25 May 2012 07:24:18 +0000 (09:24 +0200)]
#4841: Fix FileIO constructor to honor closefd when called repeatedly

Patch by Victor Stinner.

12 years agoFix other test requirements.
Antoine Pitrou [Thu, 24 May 2012 20:30:19 +0000 (22:30 +0200)]
Fix other test requirements.

12 years agoFix memory constraint for test_decodeascii
Antoine Pitrou [Thu, 24 May 2012 20:08:51 +0000 (22:08 +0200)]
Fix memory constraint for test_decodeascii

12 years agoIssue #14036: return None when port in urlparse cross 65535
Senthil Kumaran [Thu, 24 May 2012 13:54:34 +0000 (21:54 +0800)]
Issue #14036: return None when port in urlparse cross 65535

12 years agoIssue #14888: Fix misbehaviour of the _md5 module when called on data larger than...
Antoine Pitrou [Wed, 23 May 2012 21:16:14 +0000 (23:16 +0200)]
Issue #14888: Fix misbehaviour of the _md5 module when called on data larger than 2**32 bytes.

12 years agoRestore [] where default arguments are not keywords
Hynek Schlawack [Tue, 22 May 2012 13:22:14 +0000 (15:22 +0200)]
Restore [] where default arguments are not keywords

Reverts some changes of a36666c52115.

In the case of os's `mknod(filename[, mode=0600[, device=0]])`, I have nested
the [] as setting mode doesn't require to set device (but setting device
requires to set mode).

12 years ago#14804: Remove [] around optional arguments with default values
Hynek Schlawack [Tue, 22 May 2012 08:27:40 +0000 (10:27 +0200)]
#14804: Remove [] around optional arguments with default values

Mostly just mechanical removal of []. In some rare cases I've pulled the
default value up into the argument list.

12 years ago#14875: Use float('inf') instead of float('1e66666') in the json module.
Ezio Melotti [Mon, 21 May 2012 23:46:55 +0000 (17:46 -0600)]
#14875: Use float('inf') instead of float('1e66666') in the json module.

12 years agoFixes #14864: Added documentation on how to undo the effects of a logging.disable...
Vinay Sajip [Sun, 20 May 2012 14:35:00 +0000 (15:35 +0100)]
Fixes #14864: Added documentation on how to undo the effects of a logging.disable() call.

12 years agoDocument when json.load's parse_constant behaviour changed
Hynek Schlawack [Sun, 20 May 2012 09:50:41 +0000 (11:50 +0200)]
Document when json.load's parse_constant behaviour changed

It doesn't get called on 'null', 'true', 'false' since f686aced02a3.

12 years agomerge heads
Senthil Kumaran [Sun, 20 May 2012 08:59:51 +0000 (16:59 +0800)]
merge heads

12 years agoFix for issue14426 - buildbots here I come
Senthil Kumaran [Sun, 20 May 2012 08:56:24 +0000 (16:56 +0800)]
Fix for issue14426 - buildbots here I come

12 years agoTemporarily disabled test_race on Windows.
Vinay Sajip [Sun, 20 May 2012 08:53:13 +0000 (09:53 +0100)]
Temporarily disabled test_race on Windows.

12 years agoIssue #8767: Restore building with --disable-unicode.
Martin v. Löwis [Sun, 20 May 2012 08:42:17 +0000 (10:42 +0200)]
Issue #8767: Restore building with --disable-unicode.
Original patch by Stefano Taschini.

12 years agoIssue #14572: Prevent build failures with pre-3.5.0 versions of
Ned Deily [Sun, 20 May 2012 06:35:05 +0000 (23:35 -0700)]
Issue #14572: Prevent build failures with pre-3.5.0 versions of
sqlite3, such as was shipped with Centos 5 and Mac OS X 10.4.

12 years ago Issue #14426: Correct the Date format in Expires attribute of Set-Cookie. Patch...
Senthil Kumaran [Sun, 20 May 2012 04:02:44 +0000 (12:02 +0800)]
 Issue #14426: Correct the Date format in Expires attribute of Set-Cookie. Patch by Federico Reghenzani and Müte Invert

12 years agoMerged upstream changes.
Vinay Sajip [Sat, 19 May 2012 15:52:33 +0000 (16:52 +0100)]
Merged upstream changes.

12 years agoIgnore exceptions on test handler closing.
Vinay Sajip [Sat, 19 May 2012 15:50:07 +0000 (16:50 +0100)]
Ignore exceptions on test handler closing.

12 years ago#14494: Document that absolute imports became default in 3.0 instead of 2.7.
Petri Lehtinen [Sat, 19 May 2012 15:34:06 +0000 (18:34 +0300)]
#14494: Document that absolute imports became default in 3.0 instead of 2.7.

12 years ago#14072: Fix parsing of tel URIs in urlparse by making the check for ports stricter.
Ezio Melotti [Sat, 19 May 2012 14:12:17 +0000 (17:12 +0300)]
#14072: Fix parsing of tel URIs in urlparse by making the check for ports stricter.

12 years agoFix Issue14721: Send Content-length: 0 for empty body () in the http.request
Senthil Kumaran [Sat, 19 May 2012 08:52:21 +0000 (16:52 +0800)]
Fix Issue14721: Send Content-length: 0 for empty body () in the http.request

12 years agoIssue9374 - Generic parsing of query and fragment portion of urls for any scheme
Senthil Kumaran [Sat, 19 May 2012 00:10:40 +0000 (08:10 +0800)]
Issue9374 - Generic parsing of query and fragment portion of urls for any scheme

12 years ago#14798: pyclbr now raises ImportError instead of KeyError for missing packages
Petri Lehtinen [Fri, 18 May 2012 18:51:11 +0000 (21:51 +0300)]
#14798: pyclbr now raises ImportError instead of KeyError for missing packages

12 years agoFix time.time() references in the time module docs
Petri Lehtinen [Fri, 18 May 2012 18:19:17 +0000 (21:19 +0300)]
Fix time.time() references in the time module docs

Closes #14842.

12 years agoStop refetching OpenSSL.
Martin v. Löwis [Fri, 18 May 2012 12:07:28 +0000 (14:07 +0200)]
Stop refetching OpenSSL.

12 years agoUse SSL directory from properties file.
Martin v. Löwis [Fri, 18 May 2012 11:58:30 +0000 (13:58 +0200)]
Use SSL directory from properties file.

12 years ago#14823: Simplify threading.Lock.acquire argument discussion.
R David Murray [Thu, 17 May 2012 13:15:02 +0000 (09:15 -0400)]
#14823: Simplify threading.Lock.acquire argument discussion.

12 years ago#14832: 'first' now really refers to first arg in unittest assertItemsEqual
R David Murray [Wed, 16 May 2012 18:01:03 +0000 (14:01 -0400)]
#14832: 'first' now really refers to first arg in unittest assertItemsEqual

This appears to have been a mixup introduced when we switched from
'expected/actual' to 'first/second'.  The problem doesn't exist
in the corresponding assertCountEqual method in Python3.

12 years ago#14692 Fix json docs to reflect changes in json.load
Hynek Schlawack [Wed, 16 May 2012 16:02:54 +0000 (18:02 +0200)]
#14692 Fix json docs to reflect changes in json.load

The behaviour of the parse_constant callback changed insofar that 'null',
'true', 'false' don't trigger its call anymore.

Patch by Serhiy Storchaka

12 years agoIssue #14829: Fix bisect issues under 64-bit Windows.
Antoine Pitrou [Wed, 16 May 2012 13:01:40 +0000 (15:01 +0200)]
Issue #14829: Fix bisect issues under 64-bit Windows.

12 years agoSkip test under 64-bit Windows
Antoine Pitrou [Wed, 16 May 2012 12:50:25 +0000 (14:50 +0200)]
Skip test under 64-bit Windows

12 years ago#1440472: reflow
R David Murray [Wed, 16 May 2012 02:12:56 +0000 (22:12 -0400)]
#1440472: reflow

12 years ago#1440472: Explain that email parser/generator isn't *quite* "idempotent"
R David Murray [Wed, 16 May 2012 02:12:09 +0000 (22:12 -0400)]
#1440472: Explain that email parser/generator isn't *quite* "idempotent"

12 years agoIssue #14777: In an X11 windowing environment, tkinter may return
Ned Deily [Wed, 16 May 2012 01:05:57 +0000 (18:05 -0700)]
Issue #14777: In an X11 windowing environment, tkinter may return
undecoded UTF-8 bytes as a string when accessing the Tk clipboard.
Modify clipboad_get() to first request type UTF8_STRING when no
specific type is requested in an X11 windowing environment, falling
back to the current default type STRING if that fails.
Original patch by Thomas Kluyver.

12 years agoForce recheckout of openssl.
Martin v. Löwis [Tue, 15 May 2012 17:55:33 +0000 (19:55 +0200)]
Force recheckout of openssl.

12 years agomerge heads
Senthil Kumaran [Tue, 15 May 2012 16:07:55 +0000 (00:07 +0800)]
merge heads

12 years agoIssue12541 - Add UserWarning for unquoted realms
Senthil Kumaran [Tue, 15 May 2012 15:59:19 +0000 (23:59 +0800)]
Issue12541 - Add UserWarning for unquoted realms

12 years agoUpgrade openssl to 0.9.8x.
Martin v. Löwis [Tue, 15 May 2012 15:26:31 +0000 (17:26 +0200)]
Upgrade openssl to 0.9.8x.

12 years agoIssue #12541: Be lenient with quotes around Realm field with HTTP Basic Authentation...
Senthil Kumaran [Tue, 15 May 2012 14:24:10 +0000 (22:24 +0800)]
Issue #12541: Be lenient with quotes around Realm field with HTTP Basic Authentation in urllib2.

12 years ago#14766: Reflow the altered paragraphs.
R David Murray [Tue, 15 May 2012 02:33:36 +0000 (22:33 -0400)]
#14766: Reflow the altered paragraphs.

12 years ago#14766: Add correct algorithm for when a 'time' object is naive.
R David Murray [Tue, 15 May 2012 02:32:44 +0000 (22:32 -0400)]
#14766: Add correct algorithm for when a 'time' object is naive.

This patch also clarifies the definition of Naive and Aware.

Original patch by Greg Weller, I modified the first hunk
somewhat to make the exposition even clearer (I hope).

12 years agoFollowup to issue #14157: respect the relative ordering of values produced by time...
Antoine Pitrou [Mon, 14 May 2012 17:44:59 +0000 (19:44 +0200)]
Followup to issue #14157: respect the relative ordering of values produced by time.strptime().
Patch by Hynek.

12 years agoUpgrade to bzip2 1.0.6.
Martin v. Löwis [Mon, 14 May 2012 12:19:09 +0000 (14:19 +0200)]
Upgrade to bzip2 1.0.6.

12 years ago#14405: remove outdated/broken/duplicate links.
Ezio Melotti [Mon, 14 May 2012 10:26:45 +0000 (13:26 +0300)]
#14405: remove outdated/broken/duplicate links.

12 years ago#14770: backport a couple of changes from 3.x.
Ezio Melotti [Sun, 13 May 2012 17:19:41 +0000 (20:19 +0300)]
#14770: backport a couple of changes from 3.x.

12 years ago#14770: improve the library FAQ.
Ezio Melotti [Sun, 13 May 2012 16:49:00 +0000 (19:49 +0300)]
#14770: improve the library FAQ.

12 years agocorrectly define what 'fill' could be; thanks to Leland Hulbert from docs@
Sandro Tosi [Sat, 12 May 2012 21:29:06 +0000 (23:29 +0200)]
correctly define what 'fill' could be; thanks to Leland Hulbert from docs@

12 years agoAdditional example of using decimal.localcontext().
Raymond Hettinger [Fri, 11 May 2012 19:50:11 +0000 (12:50 -0700)]
Additional example of using decimal.localcontext().

12 years agoIssue #14662: Prevent shutil failures on OS X when destination does not
Ned Deily [Fri, 11 May 2012 00:45:49 +0000 (17:45 -0700)]
Issue #14662: Prevent shutil failures on OS X when destination does not
support chflag operations.  (Patch by Hynek Schlawack)

12 years agoUpdate ACKS.
Antoine Pitrou [Thu, 10 May 2012 18:28:01 +0000 (20:28 +0200)]
Update ACKS.

12 years agoIssue #14157: Fix time.strptime failing without a year on February 29th.
Antoine Pitrou [Thu, 10 May 2012 18:17:46 +0000 (20:17 +0200)]
Issue #14157: Fix time.strptime failing without a year on February 29th.
Patch by Hynek Schlawack.

12 years ago#14763: document default maxsplit value for str.split.
Ezio Melotti [Thu, 10 May 2012 12:30:42 +0000 (15:30 +0300)]
#14763: document default maxsplit value for str.split.

12 years agoCloses #14768: os.path.expanduser('~/a') doesn't works correctly when HOME is '/'
Jesus Cea [Thu, 10 May 2012 03:01:11 +0000 (05:01 +0200)]
Closes #14768: os.path.expanduser('~/a') doesn't works correctly when HOME is '/'

12 years ago#14763: fix documentation for string.split/rsplit.
Ezio Melotti [Wed, 9 May 2012 11:59:24 +0000 (14:59 +0300)]
#14763: fix documentation for string.split/rsplit.

12 years agoIssue #14761: Fix potential leak on an error case in the import machinery.
Antoine Pitrou [Wed, 9 May 2012 11:24:31 +0000 (13:24 +0200)]
Issue #14761: Fix potential leak on an error case in the import machinery.

12 years agoImprove the grammar of a non-sentence.
R David Murray [Wed, 9 May 2012 01:29:36 +0000 (21:29 -0400)]
Improve the grammar of a non-sentence.

12 years agofix possible refleak (closes #14752)
Benjamin Peterson [Tue, 8 May 2012 13:22:24 +0000 (09:22 -0400)]
fix possible refleak (closes #14752)

12 years agoremove basically bitrotted XXXs
Benjamin Peterson [Tue, 8 May 2012 02:23:48 +0000 (22:23 -0400)]
remove basically bitrotted XXXs

12 years agobackport 7a05cb3beddf to 2.7
Sandro Tosi [Mon, 7 May 2012 19:56:24 +0000 (21:56 +0200)]
backport 7a05cb3beddf to 2.7

12 years agoFix document title for Sphinx.
Georg Brandl [Sun, 6 May 2012 19:39:35 +0000 (21:39 +0200)]
Fix document title for Sphinx.

12 years ago#14034: adapt to Python 2 and fix indentation.
Ezio Melotti [Sun, 6 May 2012 14:03:19 +0000 (17:03 +0300)]
#14034: adapt to Python 2 and fix indentation.

12 years ago#14034: added the argparse tutorial. Patch by Tshepang Lekhonkhobe.
Ezio Melotti [Sun, 6 May 2012 13:15:35 +0000 (16:15 +0300)]
#14034: added the argparse tutorial.  Patch by Tshepang Lekhonkhobe.

12 years ago#13183: backport fixes to test_pdb to 2.7 branch
Georg Brandl [Sun, 6 May 2012 09:53:51 +0000 (11:53 +0200)]
#13183: backport fixes to test_pdb to 2.7 branch

12 years agoFix for issue 14725 for 2.7 branch
Richard Oudkerk [Sat, 5 May 2012 19:41:08 +0000 (20:41 +0100)]
Fix for issue 14725 for 2.7 branch

12 years agoSkip test_algorithms (known remote hosts need SNI, which is only available on 3.2+)
Antoine Pitrou [Fri, 4 May 2012 14:33:30 +0000 (16:33 +0200)]
Skip test_algorithms (known remote hosts need SNI, which is only available on 3.2+)