]> granicus.if.org Git - python/log
python
13 years agoMerge #12758: removing confusing mention of UTC from time.time description
R David Murray [Thu, 15 Mar 2012 07:09:53 +0000 (03:09 -0400)]
Merge #12758: removing confusing mention of UTC from time.time description

Patch by Dylan Sarber.

(Not sure why hg told me it merged pyexpat.c too, it showed no changes)

13 years ago#12758: removing confusing mention of UTC from time.time description
R David Murray [Thu, 15 Mar 2012 07:06:15 +0000 (03:06 -0400)]
#12758: removing confusing mention of UTC from time.time description

Patch by Dylan Sarber.

13 years agoCloses issue #14163 - tkinter: problems with hello doc example
Andrew Svetlov [Thu, 15 Mar 2012 04:41:23 +0000 (21:41 -0700)]
Closes issue #14163 - tkinter: problems with hello doc example

13 years agotry to fix compilation on glibc's with cpu sets (#14296)
Benjamin Peterson [Thu, 15 Mar 2012 03:28:25 +0000 (22:28 -0500)]
try to fix compilation on glibc's with cpu sets (#14296)

13 years agofree AST's dict
Benjamin Peterson [Thu, 15 Mar 2012 02:50:29 +0000 (21:50 -0500)]
free AST's dict

13 years agomerge
Raymond Hettinger [Thu, 15 Mar 2012 01:17:20 +0000 (18:17 -0700)]
merge

13 years agoIssue #13248: Removed docs for two deprecated unittest features. To be conservative...
Raymond Hettinger [Thu, 15 Mar 2012 01:16:18 +0000 (18:16 -0700)]
Issue #13248:  Removed docs for two deprecated unittest features.  To be conservative, the code is left in for one more release.

13 years agomerge heads
Gregory P. Smith [Thu, 15 Mar 2012 01:14:48 +0000 (18:14 -0700)]
merge heads

13 years agomerge heads
Gregory P. Smith [Thu, 15 Mar 2012 01:14:26 +0000 (18:14 -0700)]
merge heads

13 years agoFixes Issue 14234: fix for the previous commit, keep compilation when
Gregory P. Smith [Thu, 15 Mar 2012 01:11:46 +0000 (18:11 -0700)]
Fixes Issue 14234: fix for the previous commit, keep compilation when
using --with-system-expat working when the system expat does not have
salted hash support.

13 years agocpython:Fix the wrong urllib exampls which use str for POST data. Closes Issue11261
Senthil Kumaran [Thu, 15 Mar 2012 01:11:46 +0000 (18:11 -0700)]
cpython:Fix the wrong urllib exampls which use str for POST data. Closes Issue11261

13 years agoFixes Issue 14234: fix for the previous commit, keep compilation when
Gregory P. Smith [Thu, 15 Mar 2012 01:10:37 +0000 (18:10 -0700)]
Fixes Issue 14234: fix for the previous commit, keep compilation when
using --with-system-expat working when the system expat does not have
salted hash support.

13 years agoFix the wrong urllib exampls which use str for POST data. Closes Issue11261
Senthil Kumaran [Thu, 15 Mar 2012 01:08:13 +0000 (18:08 -0700)]
Fix the wrong urllib exampls which use str for POST data. Closes Issue11261

13 years agoIssue #14222: Use the new time.steady() function instead of time.time() for
Victor Stinner [Thu, 15 Mar 2012 00:22:16 +0000 (01:22 +0100)]
Issue #14222: Use the new time.steady() function instead of time.time() for
timeout in queue and threading modules to not be affected of system time
update.

13 years agoIssue #10278: Add an optional strict argument to time.steady(), False by default
Victor Stinner [Thu, 15 Mar 2012 00:17:09 +0000 (01:17 +0100)]
Issue #10278: Add an optional strict argument to time.steady(), False by default

13 years agoIssue #10278: Drop time.monotonic() function, rename time.wallclock() to time.steady()
Victor Stinner [Wed, 14 Mar 2012 23:58:32 +0000 (00:58 +0100)]
Issue #10278: Drop time.monotonic() function, rename time.wallclock() to time.steady()

 * On Mac OS X, time.steady() now uses mach_absolute_time(), a monotonic clock
 * Optimistic change: bet that CLOCK_MONOTONIC and CLOCK_REALTIME are available
   when clock_gettime() is available
 * Rewrite time.steady() documentation

13 years agofix compiler warnings
Benjamin Peterson [Wed, 14 Mar 2012 23:21:35 +0000 (18:21 -0500)]
fix compiler warnings

13 years agoremove get_prefix and set_prefix (#13248)
Benjamin Peterson [Wed, 14 Mar 2012 22:41:15 +0000 (17:41 -0500)]
remove get_prefix and set_prefix (#13248)

13 years agomerge 3.2
Matthias Klose [Wed, 14 Mar 2012 22:27:12 +0000 (23:27 +0100)]
merge 3.2

13 years agomerge heads
Matthias Klose [Wed, 14 Mar 2012 22:26:26 +0000 (23:26 +0100)]
merge heads

13 years agomerge 3.1
Matthias Klose [Wed, 14 Mar 2012 22:26:07 +0000 (23:26 +0100)]
merge 3.1

13 years agomerge heads
Matthias Klose [Wed, 14 Mar 2012 22:24:32 +0000 (23:24 +0100)]
merge heads

13 years agomerge heads
Matthias Klose [Wed, 14 Mar 2012 22:24:11 +0000 (23:24 +0100)]
merge heads

13 years agomerge 3.2
Matthias Klose [Wed, 14 Mar 2012 22:17:31 +0000 (23:17 +0100)]
merge 3.2

13 years agomerge 3.1
Matthias Klose [Wed, 14 Mar 2012 22:14:35 +0000 (23:14 +0100)]
merge 3.1

13 years ago- rename configure.in to configure.ac
Matthias Klose [Wed, 14 Mar 2012 22:10:15 +0000 (23:10 +0100)]
- rename configure.in to configure.ac
- change references from configure.in to configure.ac

13 years agomerge
Gregory P. Smith [Wed, 14 Mar 2012 22:04:57 +0000 (15:04 -0700)]
merge

13 years agomerge heads
Gregory P. Smith [Wed, 14 Mar 2012 22:04:18 +0000 (15:04 -0700)]
merge heads

13 years agomerge heads
Gregory P. Smith [Wed, 14 Mar 2012 22:03:40 +0000 (15:03 -0700)]
merge heads

13 years agomerge (no change)
Gregory P. Smith [Wed, 14 Mar 2012 22:01:57 +0000 (15:01 -0700)]
merge (no change)

13 years agoFixes Issue #14234: CVE-2012-0876: Randomize hashes of xml attributes
Gregory P. Smith [Wed, 14 Mar 2012 22:00:39 +0000 (15:00 -0700)]
Fixes Issue #14234: CVE-2012-0876: Randomize hashes of xml attributes
in the hash table internal to the pyexpat module's copy of the expat
library to avoid a denial of service due to hash collisions.
Patch by David Malcolm with some modifications by the expat project.

13 years agomerge (no change needed in 3.2)
Gregory P. Smith [Wed, 14 Mar 2012 21:58:50 +0000 (14:58 -0700)]
merge (no change needed in 3.2)

13 years agomove the Misc/NEWS entry to the right section.
Gregory P. Smith [Wed, 14 Mar 2012 21:58:22 +0000 (14:58 -0700)]
move the Misc/NEWS entry to the right section.

13 years agoRemoved XXX from unittest.mock docstring and switch to a nicer try...except...finally
Michael Foord [Wed, 14 Mar 2012 21:56:54 +0000 (14:56 -0700)]
Removed XXX from unittest.mock docstring and switch to a nicer try...except...finally

13 years agomerge with 3.2
Georg Brandl [Wed, 14 Mar 2012 21:42:49 +0000 (22:42 +0100)]
merge with 3.2

13 years agoFixes Issue #14234: CVE-2012-0876: Randomize hashes of xml attributes
Gregory P. Smith [Wed, 14 Mar 2012 21:41:00 +0000 (14:41 -0700)]
Fixes Issue #14234: CVE-2012-0876: Randomize hashes of xml attributes
in the hash table internal to the pyexpat module's copy of the expat
library to avoid a denial of service due to hash collisions.
Patch by David Malcolm with some modifications by the expat project.

13 years agoRemove more Python 2 compatibility cruft from unittest.mock
Michael Foord [Wed, 14 Mar 2012 21:40:22 +0000 (14:40 -0700)]
Remove more Python 2 compatibility cruft from unittest.mock

13 years agoCloses #14305: fix typo.
Georg Brandl [Wed, 14 Mar 2012 21:40:08 +0000 (22:40 +0100)]
Closes #14305: fix typo.

13 years agoFixes issue #14234: CVE-2012-0876: Randomize hashes of xml attributes
Gregory P. Smith [Wed, 14 Mar 2012 21:26:55 +0000 (14:26 -0700)]
Fixes issue #14234: CVE-2012-0876: Randomize hashes of xml attributes
in the hash table internal to the pyexpat module's copy of the expat
library to avoid a denial of service due to hash collisions.
Patch by David Malcolm with some modifications by the expat project.

13 years agomerge heads
Senthil Kumaran [Wed, 14 Mar 2012 21:00:31 +0000 (14:00 -0700)]
merge heads

13 years agoFix the buildbot breakdown - issue 10050
Senthil Kumaran [Wed, 14 Mar 2012 20:59:56 +0000 (13:59 -0700)]
Fix the buildbot breakdown - issue 10050

13 years agoMegre from tip
Andrew Svetlov [Wed, 14 Mar 2012 20:46:08 +0000 (13:46 -0700)]
Megre from tip

13 years agoMerge from tip
Andrew Svetlov [Wed, 14 Mar 2012 20:44:02 +0000 (13:44 -0700)]
Merge from tip

13 years agodeprecated the old urllib primitives in 3.3 urllib package - issue 10050
Senthil Kumaran [Wed, 14 Mar 2012 20:43:53 +0000 (13:43 -0700)]
deprecated the old urllib primitives in 3.3 urllib package - issue 10050

13 years agoRemove Python 2 compatibility cruft from unittest.mock
Michael Foord [Wed, 14 Mar 2012 20:30:29 +0000 (13:30 -0700)]
Remove Python 2 compatibility cruft from unittest.mock

13 years agoIssue #14200: Idle shell crash on printing non-BMP unicode character.
Andrew Svetlov [Wed, 14 Mar 2012 20:22:12 +0000 (13:22 -0700)]
Issue #14200: Idle shell crash on printing non-BMP unicode character.

UnicodeEncodeError is raised for strings contains non-BMP characters.
For eval results unicode escaping is used, print() calls display
exception with traceback as usual.

13 years agoAnd another one... mock import fix.
Michael Foord [Wed, 14 Mar 2012 20:01:31 +0000 (13:01 -0700)]
And another one... mock import fix.

13 years agoMerge
Michael Foord [Wed, 14 Mar 2012 19:59:08 +0000 (12:59 -0700)]
Merge

13 years agoFix another mock import
Michael Foord [Wed, 14 Mar 2012 19:58:46 +0000 (12:58 -0700)]
Fix another mock import

13 years agoFix import failure in mock test
Michael Foord [Wed, 14 Mar 2012 19:38:06 +0000 (12:38 -0700)]
Fix import failure in mock test

13 years ago#12818: remove escaping of () in quoted strings in formataddr
R David Murray [Wed, 14 Mar 2012 19:31:47 +0000 (15:31 -0400)]
#12818: remove escaping of () in quoted strings in formataddr

The quoting of ()s inside quoted strings is allowed by the RFC, but is not
needed.  There seems to be no reason to add needless escapes.

13 years agoPEP 417: Adding unittest.mock
Michael Foord [Wed, 14 Mar 2012 19:24:34 +0000 (12:24 -0700)]
PEP 417: Adding unittest.mock

13 years ago#14062: fix BytesParser handling of Header objects
R David Murray [Wed, 14 Mar 2012 18:24:22 +0000 (14:24 -0400)]
#14062: fix BytesParser handling of Header objects

This is a different fix than the 3.2 fix, but the new tests are the same.

This also affected smtplib.SMTP.send_message, which calls BytesParser.

13 years ago#14062: fix BytesParser handling of linesep for Header objects
R David Murray [Wed, 14 Mar 2012 18:05:03 +0000 (14:05 -0400)]
#14062: fix BytesParser handling of linesep for Header objects

This also affected smtplib.SMTP.send_message, which calls BytesParser.

13 years agoIssue #13839: When invoked on the command-line, the pstats module now accepts several...
Antoine Pitrou [Wed, 14 Mar 2012 16:47:11 +0000 (17:47 +0100)]
Issue #13839: When invoked on the command-line, the pstats module now accepts several filenames of profile stat files and merges them all.
Patch by Matt Joiner.

13 years agoRevert the patch for issue 3835 because failed on Windows buildbot
Andrew Svetlov [Wed, 14 Mar 2012 16:39:36 +0000 (09:39 -0700)]
Revert the patch for issue 3835 because failed on Windows buildbot

Windows build is compiled with no-threaded tcl/tk by default

13 years ago#14289: merge with 3.2
Georg Brandl [Wed, 14 Mar 2012 07:18:59 +0000 (08:18 +0100)]
#14289: merge with 3.2

13 years agoCloses #14289: put a link to the CHM download page on the docs download page.
Georg Brandl [Wed, 14 Mar 2012 07:18:47 +0000 (08:18 +0100)]
Closes #14289: put a link to the CHM download page on the docs download page.

13 years ago#14283: merge with 3.2
Georg Brandl [Wed, 14 Mar 2012 07:07:29 +0000 (08:07 +0100)]
#14283: merge with 3.2

13 years agoMerge #14291: if a header has non-ascii unicode, default to CTE using utf-8
R David Murray [Wed, 14 Mar 2012 07:03:27 +0000 (03:03 -0400)]
Merge #14291: if a header has non-ascii unicode, default to CTE using utf-8

In Python2, if a unicode string was assigned as the value of a header,
email would automatically CTE encode it using the UTF8 charset.
This capability was lost in the Python3 translation, and this patch
restores it.

Patch by Ali Ikinci, assisted by R. David Murray.

I also added a fix for the mailbox test that was depending (with a comment
that it was a bad idea to so depend) on non-ASCII causing message_from_string
to raise an error.  It now uses support.patch to induce an error during
message serialization.

13 years agoCloses #14283: match() and search() are regex methods, not match methods.
Georg Brandl [Wed, 14 Mar 2012 07:02:43 +0000 (08:02 +0100)]
Closes #14283: match() and search() are regex methods, not match methods.

13 years ago#14291: if a header has non-ascii unicode, default to CTE using utf-8
R David Murray [Wed, 14 Mar 2012 06:59:51 +0000 (02:59 -0400)]
#14291: if a header has non-ascii unicode, default to CTE using utf-8

In Python2, if a unicode string was assigned as the value of a header,
email would automatically CTE encode it using the UTF8 charset.
This capability was lost in the Python3 translation, and this patch
restores it.

Patch by Ali Ikinci, assisted by R. David Murray.

I also added a fix for the mailbox test that was depending (with a comment
that it was a bad idea to so depend) on non-ASCII causing message_from_string
to raise an error.  It now uses support.patch to induce an error during
message serialization.

13 years agoCloses #14298: update section about dict implementation.
Georg Brandl [Wed, 14 Mar 2012 06:50:17 +0000 (07:50 +0100)]
Closes #14298: update section about dict implementation.

13 years agoAvoid main_window unused compiler warning.
Gregory P. Smith [Wed, 14 Mar 2012 06:21:53 +0000 (23:21 -0700)]
Avoid main_window unused compiler warning.

13 years agodefault: closes Issue12365 - Add an example explaining the context manager use case...
Senthil Kumaran [Wed, 14 Mar 2012 02:48:37 +0000 (19:48 -0700)]
default: closes Issue12365 - Add an example explaining the context manager use case of urllib.urlopen

13 years agocloses Issue12365 - Add an example explaining the context manager use case of urllib...
Senthil Kumaran [Wed, 14 Mar 2012 02:47:51 +0000 (19:47 -0700)]
closes Issue12365 - Add an example explaining the context manager use case of urllib.urlopen

13 years agoIssue10050 - urlretrieve uses newer urlopen. reporthook of urlretrieve takes, block...
Senthil Kumaran [Wed, 14 Mar 2012 02:29:33 +0000 (19:29 -0700)]
Issue10050 - urlretrieve uses newer urlopen. reporthook of urlretrieve takes, block number, block read size, file_size

13 years agoIssue #989712: Support using Tk without a mainloop.
Andrew Svetlov [Wed, 14 Mar 2012 01:36:13 +0000 (18:36 -0700)]
Issue #989712: Support using Tk without a mainloop.

13 years agoWhat's New in Python 3.3: Repeat the dict lookup change in Porting section
Victor Stinner [Tue, 13 Mar 2012 23:40:57 +0000 (00:40 +0100)]
What's New in Python 3.3: Repeat the dict lookup change in Porting section

13 years agoFix doc of datetime.date*.*fromtimestamp() methods
Victor Stinner [Tue, 13 Mar 2012 23:39:29 +0000 (00:39 +0100)]
Fix doc of datetime.date*.*fromtimestamp() methods

13 years agoIssue #14180: Fix the select module to handle correctly the Windows timeval
Victor Stinner [Tue, 13 Mar 2012 23:20:51 +0000 (00:20 +0100)]
Issue #14180: Fix the select module to handle correctly the Windows timeval
structure. timeval.tv_sec is a long on Windows, not time_t.

13 years agoIssue #14180: TestDateTime.test_microsecond_rounding() handles localtime() and
Victor Stinner [Tue, 13 Mar 2012 23:17:05 +0000 (00:17 +0100)]
Issue #14180: TestDateTime.test_microsecond_rounding() handles localtime() and
gmtime() failure on Windows

13 years agoIssue #14180: datetime.date.fromtimestamp(), datetime.datetime.fromtimestamp()
Victor Stinner [Tue, 13 Mar 2012 23:15:40 +0000 (00:15 +0100)]
Issue #14180: datetime.date.fromtimestamp(), datetime.datetime.fromtimestamp()
and datetime.datetime.utcfromtimestamp() now raise an OSError instead of
ValueError if localtime() or gmtime() failed.

13 years ago#8315: add automatic unittest test discovery in test.test_email
R David Murray [Tue, 13 Mar 2012 22:02:22 +0000 (18:02 -0400)]
#8315: add automatic unittest test discovery in test.test_email

13 years agomerge 3.2
Benjamin Peterson [Tue, 13 Mar 2012 21:49:36 +0000 (16:49 -0500)]
merge 3.2

13 years agomerge heads
Benjamin Peterson [Tue, 13 Mar 2012 21:46:35 +0000 (16:46 -0500)]
merge heads

13 years agomerge heads
Benjamin Peterson [Tue, 13 Mar 2012 21:46:09 +0000 (16:46 -0500)]
merge heads

13 years agoMerge 3.2
Martin v. Löwis [Tue, 13 Mar 2012 21:34:04 +0000 (14:34 -0700)]
Merge 3.2

13 years agoIssue #5219: Prevent event handler cascade in IDLE.
Martin v. Löwis [Tue, 13 Mar 2012 21:32:29 +0000 (14:32 -0700)]
Issue #5219: Prevent event handler cascade in IDLE.
Patch by Roger Serwy.

13 years agoIssue #5219: Prevent event handler cascade in IDLE.
Martin v. Löwis [Tue, 13 Mar 2012 21:18:36 +0000 (14:18 -0700)]
Issue #5219: Prevent event handler cascade in IDLE.
Patch by Roger Serwy.

13 years agomerge 3.2
Benjamin Peterson [Tue, 13 Mar 2012 21:13:35 +0000 (16:13 -0500)]
merge 3.2

13 years agomerge heads
Benjamin Peterson [Tue, 13 Mar 2012 21:13:21 +0000 (16:13 -0500)]
merge heads

13 years agofix indentation
Benjamin Peterson [Tue, 13 Mar 2012 21:13:09 +0000 (16:13 -0500)]
fix indentation

13 years agoIssue #3835: Refuse to use unthreaded Tcl in threaded Python.
Martin v. Löwis [Tue, 13 Mar 2012 20:59:15 +0000 (13:59 -0700)]
Issue #3835: Refuse to use unthreaded Tcl in threaded Python.
Patch by Guilherme Polo and Andrew Svetlov.

13 years agoIssue #2843: Add new Tk API to Tkinter.
Martin v. Löwis [Tue, 13 Mar 2012 20:40:42 +0000 (13:40 -0700)]
Issue #2843: Add new Tk API to Tkinter.
Patch by Guilherme Polo and Andrew Svetlov.

13 years agoIssue #14184: merge
Ned Deily [Tue, 13 Mar 2012 18:31:36 +0000 (11:31 -0700)]
Issue #14184: merge

13 years agoIssue #14184: Increase the default stack size for secondary threads on
Ned Deily [Tue, 13 Mar 2012 18:18:18 +0000 (11:18 -0700)]
Issue #14184: Increase the default stack size for secondary threads on
Mac OS X to prevent interpreter crashes when compiled on 10.7.

13 years agoIssue #14180: Fix an invalid rounding when compiler optimization are enabled
Victor Stinner [Tue, 13 Mar 2012 18:12:23 +0000 (19:12 +0100)]
Issue #14180: Fix an invalid rounding when compiler optimization are enabled

Use volatile keyword to disable localy unsafe float optimizations.

13 years agoIssue #14180: Fix pythoncore.vcproj, Modules/_time.[ch] have been removed
Victor Stinner [Tue, 13 Mar 2012 16:42:18 +0000 (17:42 +0100)]
Issue #14180: Fix pythoncore.vcproj, Modules/_time.[ch] have been removed

13 years agoIssue #14180: Fix another typo in kqueue_queue_control()
Victor Stinner [Tue, 13 Mar 2012 15:25:35 +0000 (16:25 +0100)]
Issue #14180: Fix another typo in kqueue_queue_control()

13 years agoIssue #14180: Fix select.select() compilation on BSD and a typo in kqueue_queue_control()
Victor Stinner [Tue, 13 Mar 2012 14:29:08 +0000 (15:29 +0100)]
Issue #14180: Fix select.select() compilation on BSD and a typo in kqueue_queue_control()

13 years agoIssue #14180: Remove commented code
Victor Stinner [Tue, 13 Mar 2012 12:50:34 +0000 (13:50 +0100)]
Issue #14180: Remove commented code

13 years agoClose #14180: Factorize code to convert a number of seconds to time_t, timeval or...
Victor Stinner [Tue, 13 Mar 2012 12:35:55 +0000 (13:35 +0100)]
Close #14180: Factorize code to convert a number of seconds to time_t, timeval or timespec

time.ctime(), gmtime(), time.localtime(), datetime.date.fromtimestamp(),
datetime.datetime.fromtimestamp() and datetime.datetime.utcfromtimestamp() now
raises an OverflowError, instead of a ValueError, if the timestamp does not fit
in time_t.

datetime.datetime.fromtimestamp() and datetime.datetime.utcfromtimestamp() now
round microseconds towards zero instead of rounding to nearest with ties going
away from zero.

13 years agoMerged upstream change.
Vinay Sajip [Tue, 13 Mar 2012 12:18:19 +0000 (12:18 +0000)]
Merged upstream change.

13 years agoMerged upstream change.
Vinay Sajip [Tue, 13 Mar 2012 12:15:46 +0000 (12:15 +0000)]
Merged upstream change.

13 years agoCloses #14267: Merged fix from 3.2.
Vinay Sajip [Tue, 13 Mar 2012 12:15:09 +0000 (12:15 +0000)]
Closes #14267: Merged fix from 3.2.

13 years agoCloses #14267: Corrected computation of rollover filename.
Vinay Sajip [Tue, 13 Mar 2012 12:10:33 +0000 (12:10 +0000)]
Closes #14267: Corrected computation of rollover filename.

13 years agomerge to 3.3 - Fix closes Issue14281 - Test for cgi.escape by Brian Landers
Senthil Kumaran [Tue, 13 Mar 2012 08:51:20 +0000 (01:51 -0700)]
merge to 3.3 - Fix closes Issue14281 - Test for cgi.escape by Brian Landers

13 years ago3.2 - Fix closes Issue14281 - Test for cgi.escape by Brian Landers
Senthil Kumaran [Tue, 13 Mar 2012 08:50:27 +0000 (01:50 -0700)]
3.2 - Fix closes Issue14281 - Test for cgi.escape by Brian Landers

13 years agomerge heads
Senthil Kumaran [Tue, 13 Mar 2012 07:16:58 +0000 (00:16 -0700)]
merge heads