]> granicus.if.org Git - python/log
python
13 years agoNo need to create and destroy links when updating a fixed-sized circular queue.
Raymond Hettinger [Sat, 31 Mar 2012 02:15:18 +0000 (19:15 -0700)]
No need to create and destroy links when updating a fixed-sized circular queue.

13 years agoMerge #10423: clarify options vs args in argparse discussion of optparse
R David Murray [Fri, 30 Mar 2012 22:08:29 +0000 (18:08 -0400)]
Merge #10423: clarify options vs args in argparse discussion of optparse

Patch by Sandro Tosi.

13 years ago#10423: clarify options vs args in argparse discussion of optparse
R David Murray [Fri, 30 Mar 2012 22:07:42 +0000 (18:07 -0400)]
#10423: clarify options vs args in argparse discussion of optparse

Patch by Sandro Tosi.

13 years agoMinor cleanup: add whitespace, add comments, bring function attribute updates together.
Raymond Hettinger [Fri, 30 Mar 2012 20:15:48 +0000 (13:15 -0700)]
Minor cleanup: add whitespace, add comments, bring function attribute updates together.

13 years agoIssue #14065: Added cyclic GC support to ET.Element
Eli Bendersky [Fri, 30 Mar 2012 13:38:33 +0000 (16:38 +0300)]
Issue #14065: Added cyclic GC support to ET.Element

13 years agoMerge.
Stefan Krah [Fri, 30 Mar 2012 12:19:21 +0000 (14:19 +0200)]
Merge.

13 years agoUse abort() rather than exit() to appease tools like rpmlint. abort() is used
Stefan Krah [Fri, 30 Mar 2012 12:12:20 +0000 (14:12 +0200)]
Use abort() rather than exit() to appease tools like rpmlint. abort() is used
in libmpdec to prevent undefined behavior if an invalid context is used. This
cannot occur for the _decimal module since user input for the context is
validated.

13 years agoIssue #14435: Remove special block allocation code from floatobject.c
Kristján Valur Jónsson [Fri, 30 Mar 2012 09:18:15 +0000 (09:18 +0000)]
Issue #14435: Remove special block allocation code from floatobject.c
PyFloatObjects are now allocated using PyObject_MALLOC like all other
internal types, but maintain a limited freelist of objects at hand for
performance.  This will result in more consistent memory usage by Python.

13 years agoIssue #14006: improve the documentation of xml.etree.ElementTree
Eli Bendersky [Fri, 30 Mar 2012 08:44:15 +0000 (11:44 +0300)]
Issue #14006: improve the documentation of xml.etree.ElementTree

Removed the useless explanation of the Element data structure that started the
documentation page. Instead, the documentation now starts with a brief tutorial
skimming some of the capabilities of the module. The tutorial can be followed
by additional topic-specific sections (such as XPath support), and eventually
by a reference that goes over the module's classes and functions, as usual.

13 years agofix typo in glossary
Eli Bendersky [Fri, 30 Mar 2012 08:02:05 +0000 (11:02 +0300)]
fix typo in glossary

13 years agoAdded the "provisional package" glossary term from PEP 411
Eli Bendersky [Fri, 30 Mar 2012 07:52:25 +0000 (10:52 +0300)]
Added the "provisional package" glossary term from PEP 411

13 years agoCloses #14436: merged fix from 3.2.
Vinay Sajip [Thu, 29 Mar 2012 19:18:21 +0000 (20:18 +0100)]
Closes #14436: merged fix from 3.2.

13 years agoCloses #14436: Convert msg + args to string before pickling.
Vinay Sajip [Thu, 29 Mar 2012 19:17:18 +0000 (20:17 +0100)]
Closes #14436: Convert msg + args to string before pickling.

13 years agoMerge with 3.2
Andrew Svetlov [Thu, 29 Mar 2012 16:50:46 +0000 (19:50 +0300)]
Merge with 3.2

13 years agoIssue #14442: Add missing errno import in test_smtplib.
Ross Lagerwall [Thu, 29 Mar 2012 16:08:48 +0000 (18:08 +0200)]
Issue #14442: Add missing errno import in test_smtplib.

13 years agoIssue #14409: IDLE doesn't not execute commands from shell with default keybinding...
Andrew Svetlov [Thu, 29 Mar 2012 16:01:28 +0000 (19:01 +0300)]
Issue #14409: IDLE doesn't not execute commands from shell with default keybinding for <Return>.

Patch by Roger Serwy.

13 years agoFix typo in unittest.mock docs
Michael Foord [Thu, 29 Mar 2012 12:46:50 +0000 (13:46 +0100)]
Fix typo in unittest.mock docs

13 years ago#14416: conditionally add LOG_AUTHPRIV facility and LOG_ODELAY to syslog.
R David Murray [Thu, 29 Mar 2012 11:15:45 +0000 (07:15 -0400)]
#14416: conditionally add LOG_AUTHPRIV facility and LOG_ODELAY to syslog.

Unlike the other facilities, we don't use a fallback for AUTHPRIV if it
doesn't exist.  Because it is intended for logging sensitive log messages, it
is better that a program trying to log such messages fail than that it log
them insecurely.

Initial patch by Federico Reghenzani.

13 years agoMerge #14416: add missing LOG_SYSLOG facility to syslog docs.
R David Murray [Thu, 29 Mar 2012 10:49:29 +0000 (06:49 -0400)]
Merge #14416: add missing LOG_SYSLOG facility to syslog docs.

13 years ago#14416: add missing LOG_SYSLOG facility to syslog docs.
R David Murray [Thu, 29 Mar 2012 10:47:35 +0000 (06:47 -0400)]
#14416: add missing LOG_SYSLOG facility to syslog docs.

13 years agoFix newlines.
Georg Brandl [Thu, 29 Mar 2012 07:18:14 +0000 (09:18 +0200)]
Fix newlines.

13 years agoUpdate unittest.mock.patch example
Michael Foord [Wed, 28 Mar 2012 14:49:08 +0000 (15:49 +0100)]
Update unittest.mock.patch example

13 years agoFix unittest.mock.patch docstring
Michael Foord [Wed, 28 Mar 2012 14:41:28 +0000 (15:41 +0100)]
Fix unittest.mock.patch docstring

13 years agoRe-order unittest.mock documentation to put magic method support before the helpers
Michael Foord [Wed, 28 Mar 2012 14:38:36 +0000 (15:38 +0100)]
Re-order unittest.mock documentation to put magic method support before the helpers

13 years agoAdding an example to unittest.mock.patch documentation
Michael Foord [Wed, 28 Mar 2012 14:32:08 +0000 (15:32 +0100)]
Adding an example to unittest.mock.patch documentation

13 years agoMinor unittest.mock.patch doc / docstring improvement
Michael Foord [Wed, 28 Mar 2012 14:08:08 +0000 (15:08 +0100)]
Minor unittest.mock.patch doc / docstring improvement

13 years agoUnsplit unittest.mock documentation
Michael Foord [Wed, 28 Mar 2012 13:36:02 +0000 (14:36 +0100)]
Unsplit unittest.mock documentation

13 years agotime.time() now uses clock_gettime(CLOCK_REALTIME) if available
Victor Stinner [Wed, 28 Mar 2012 00:54:15 +0000 (02:54 +0200)]
time.time() now uses clock_gettime(CLOCK_REALTIME) if available

clock_gettime(CLOCK_REALTIME) has a better resolution than gettimeofday().
time.time() falls back on gettimeofday() (and then on other functions) on
error.

13 years agoDocument the fact that mach_timebase_info() cannot fail
Victor Stinner [Wed, 28 Mar 2012 00:50:46 +0000 (02:50 +0200)]
Document the fact that mach_timebase_info() cannot fail

And call mach_absolute_time() after mach_timebase_info().

13 years agoIssue #11826: Fix memory leak in atexitmodule.
Stefan Krah [Tue, 27 Mar 2012 09:49:21 +0000 (11:49 +0200)]
Issue #11826: Fix memory leak in atexitmodule.

13 years agomerge with 3.2
Georg Brandl [Tue, 27 Mar 2012 05:46:54 +0000 (07:46 +0200)]
merge with 3.2

13 years agoCloses #14411: remove outdated comment in rlcompleter docstring.
Georg Brandl [Tue, 27 Mar 2012 05:46:46 +0000 (07:46 +0200)]
Closes #14411: remove outdated comment in rlcompleter docstring.

13 years agoCloses #14421: use with statement to properly close socket in bandwidth test.
Georg Brandl [Tue, 27 Mar 2012 05:43:53 +0000 (07:43 +0200)]
Closes #14421: use with statement to properly close socket in bandwidth test.

13 years agoFix typo
Éric Araujo [Tue, 27 Mar 2012 03:35:31 +0000 (23:35 -0400)]
Fix typo

13 years agoFix doc typo noticed by Amaury Forgeot d'Arc
Eli Bendersky [Tue, 27 Mar 2012 02:57:23 +0000 (04:57 +0200)]
Fix doc typo noticed by Amaury Forgeot d'Arc

13 years agoFix time.steady(strict=True): don't use CLOCK_REALTIME
Victor Stinner [Mon, 26 Mar 2012 20:53:14 +0000 (22:53 +0200)]
Fix time.steady(strict=True): don't use CLOCK_REALTIME

13 years agoIssue #14383: Add _PyDict_GetItemId() and _PyDict_SetItemId() functions
Victor Stinner [Mon, 26 Mar 2012 20:10:51 +0000 (22:10 +0200)]
Issue #14383: Add _PyDict_GetItemId() and _PyDict_SetItemId() functions

These functions simplify the usage of static constant Unicode strings.
Generalize the usage of _Py_Identifier in ceval.c and typeobject.c.

13 years agoIssue #14368: _PyTime_gettimeofday() cannot fail
Victor Stinner [Mon, 26 Mar 2012 20:08:02 +0000 (22:08 +0200)]
Issue #14368: _PyTime_gettimeofday() cannot fail

floattime() must not raise an error if the current time is 1970.1.1 at 00:00.

13 years agoUpdate missed idlelib/NEWS.txt
Andrew Svetlov [Mon, 26 Mar 2012 19:14:13 +0000 (22:14 +0300)]
Update missed idlelib/NEWS.txt

13 years agoIDLE can be launched as python -m ildelib
Andrew Svetlov [Mon, 26 Mar 2012 19:11:46 +0000 (22:11 +0300)]
IDLE can be launched as python -m ildelib

13 years agoIssue #989712: update the code to process tkinter messages in IDLE
Andrew Svetlov [Mon, 26 Mar 2012 18:56:44 +0000 (21:56 +0300)]
Issue #989712: update the code to process tkinter messages in IDLE
  without mainloop.

  Thanks to Roger Serwy for patch.

13 years agogrammar
Benjamin Peterson [Mon, 26 Mar 2012 18:50:32 +0000 (14:50 -0400)]
grammar

13 years agoIssue #6488: Explain the XPath support of xml.etree.ElementTree, with code
Eli Bendersky [Mon, 26 Mar 2012 18:43:32 +0000 (20:43 +0200)]
Issue #6488: Explain the XPath support of xml.etree.ElementTree, with code
samples and a reference. Also fix the other nits mentioned in the issue.

This also partially addresses issue #14006.

13 years agoIssue #14410: merge with 3.2
Sandro Tosi [Mon, 26 Mar 2012 17:36:44 +0000 (19:36 +0200)]
Issue #14410: merge with 3.2

13 years agoIssue #14410: fix typo in argparse doc; patch by Tshepang Lekhonkhobe
Sandro Tosi [Mon, 26 Mar 2012 17:36:23 +0000 (19:36 +0200)]
Issue #14410: fix typo in argparse doc; patch by Tshepang Lekhonkhobe

13 years ago#14413: tweak word order in deprecation section
R David Murray [Mon, 26 Mar 2012 17:34:46 +0000 (13:34 -0400)]
#14413: tweak word order in deprecation section

13 years agoUpdated handler documentation.
Vinay Sajip [Mon, 26 Mar 2012 16:17:39 +0000 (17:17 +0100)]
Updated handler documentation.

13 years agoMinor documentation tweak.
Vinay Sajip [Mon, 26 Mar 2012 16:09:58 +0000 (17:09 +0100)]
Minor documentation tweak.

13 years agoIssue #3367: Merge fix from 3.2.
Stefan Krah [Mon, 26 Mar 2012 13:11:22 +0000 (15:11 +0200)]
Issue #3367: Merge fix from 3.2.

13 years agoIssue #3367: NULL-terminate argv[] copies to prevent an invalid access
Stefan Krah [Mon, 26 Mar 2012 13:05:22 +0000 (15:05 +0200)]
Issue #3367: NULL-terminate argv[] copies to prevent an invalid access
in sys_update_path().

13 years agomerge 3.2
Benjamin Peterson [Mon, 26 Mar 2012 02:41:16 +0000 (22:41 -0400)]
merge 3.2

13 years agomerge heads
Benjamin Peterson [Mon, 26 Mar 2012 02:41:06 +0000 (22:41 -0400)]
merge heads

13 years agokill this terribly outdated comment
Benjamin Peterson [Mon, 26 Mar 2012 02:40:54 +0000 (22:40 -0400)]
kill this terribly outdated comment

13 years agounittest.mock: removed another bit of Python 2 only code
Michael Foord [Sun, 25 Mar 2012 22:27:12 +0000 (23:27 +0100)]
unittest.mock: removed another bit of Python 2 only code

13 years agoAdding unittest.mock documentation
Michael Foord [Sun, 25 Mar 2012 22:12:55 +0000 (23:12 +0100)]
Adding unittest.mock documentation

13 years agounittest.mock: a mock created by patch with a spec as the list argument will be calla...
Michael Foord [Sun, 25 Mar 2012 18:53:18 +0000 (19:53 +0100)]
unittest.mock: a mock created by patch with a spec as the list argument will be callable if __call__ is in the spec

13 years agomerge with 3.2
Georg Brandl [Sun, 25 Mar 2012 18:41:06 +0000 (20:41 +0200)]
merge with 3.2

13 years agoAdd missing files for new doc theme.
Georg Brandl [Sun, 25 Mar 2012 18:40:57 +0000 (20:40 +0200)]
Add missing files for new doc theme.

13 years agomerge heads
Georg Brandl [Sun, 25 Mar 2012 18:38:15 +0000 (20:38 +0200)]
merge heads

13 years agounittest.mock: remove another piece of Python 2 specific code
Michael Foord [Sun, 25 Mar 2012 18:35:22 +0000 (19:35 +0100)]
unittest.mock: remove another piece of Python 2 specific code

13 years agomerge with 3.2
Georg Brandl [Sun, 25 Mar 2012 18:32:35 +0000 (20:32 +0200)]
merge with 3.2

13 years agoSwitch to new "lighter" doc design.
Georg Brandl [Sun, 25 Mar 2012 18:31:57 +0000 (20:31 +0200)]
Switch to new "lighter" doc design.

13 years agoRemove more Python 2 code from unittest.mock (obsolete function attributes)
Michael Foord [Sun, 25 Mar 2012 18:16:10 +0000 (19:16 +0100)]
Remove more Python 2 code from unittest.mock (obsolete function attributes)

13 years agoMinor changes to the unittest.mock.mock_open helper
Michael Foord [Sun, 25 Mar 2012 18:11:50 +0000 (19:11 +0100)]
Minor changes to the unittest.mock.mock_open helper

13 years agoAddition of docstrings to unittest.mock helpers
Michael Foord [Sun, 25 Mar 2012 18:07:33 +0000 (19:07 +0100)]
Addition of docstrings to unittest.mock helpers

13 years agounittest.mock: set file_spec on first use
Michael Foord [Sun, 25 Mar 2012 18:03:13 +0000 (19:03 +0100)]
unittest.mock: set file_spec on first use

13 years agoSupport subclassing unittest.mock._patch and fix various obscure bugs around patcher...
Michael Foord [Sun, 25 Mar 2012 17:57:58 +0000 (18:57 +0100)]
Support subclassing unittest.mock._patch and fix various obscure bugs around patcher spec arguments

13 years agoMerge
Michael Foord [Sun, 25 Mar 2012 17:16:26 +0000 (18:16 +0100)]
Merge

13 years agounittest.mock.MagicMock objects are now unorderable by default
Michael Foord [Sun, 25 Mar 2012 17:16:07 +0000 (18:16 +0100)]
unittest.mock.MagicMock objects are now unorderable by default

13 years agoRaise MemoryError instead of InvalidOperation/MallocError for compatibility
Stefan Krah [Sun, 25 Mar 2012 16:59:21 +0000 (18:59 +0200)]
Raise MemoryError instead of InvalidOperation/MallocError for compatibility
with decimal.py. The standard specifies InsufficientStorage (MallocError) as
a sub-condition of InvalidOperation. This allows a calculation to continue
with NaN results when allocation fails.

13 years agoRemove extra spaces in doc example.
Andrew Svetlov [Sun, 25 Mar 2012 08:44:59 +0000 (11:44 +0300)]
Remove extra spaces in doc example.

13 years agoIssue #14200 — now displayhook for IDLE works in non-subprocess mode as well as subpr...
Andrew Svetlov [Sun, 25 Mar 2012 08:43:02 +0000 (11:43 +0300)]
Issue #14200 — now displayhook for IDLE works in non-subprocess mode as well as subprecess.

13 years agomerge with 3.2
Georg Brandl [Sun, 25 Mar 2012 06:43:32 +0000 (08:43 +0200)]
merge with 3.2

13 years agoCloses #14401: fix typos in curses howto.
Georg Brandl [Sun, 25 Mar 2012 06:43:22 +0000 (08:43 +0200)]
Closes #14401: fix typos in curses howto.

13 years agoIssue #13902: Fix a random test_threading failure on FreeBSD 6 buildbots (due
Charles-François Natali [Sat, 24 Mar 2012 19:37:01 +0000 (20:37 +0100)]
Issue #13902: Fix a random test_threading failure on FreeBSD 6 buildbots (due
to a known bug in pthread implementation on FreeBSD < 7).

13 years agoIssue #13902: Fix a random test_threading failure on FreeBSD 6 buildbots (due
Charles-François Natali [Sat, 24 Mar 2012 19:36:09 +0000 (20:36 +0100)]
Issue #13902: Fix a random test_threading failure on FreeBSD 6 buildbots (due
to a known bug in pthread implementation on FreeBSD < 7).

13 years agoIssue #14349: Fix the doc of the MAKE_FUNCTION opcode in Doc/library/dis.rst to
Eli Bendersky [Sat, 24 Mar 2012 16:52:45 +0000 (18:52 +0200)]
Issue #14349: Fix the doc of the MAKE_FUNCTION opcode in Doc/library/dis.rst to
correctly list the stack params it expects.

13 years agomerge 3.2
Martin v. Löwis [Sat, 24 Mar 2012 16:40:50 +0000 (17:40 +0100)]
merge 3.2

13 years agoIssue #14400: Fix typo.
Martin v. Löwis [Sat, 24 Mar 2012 16:39:57 +0000 (17:39 +0100)]
Issue #14400: Fix typo.

13 years agoIssue #14154: Reimplement the bigmem test memory watchdog as a subprocess.
Charles-François Natali [Sat, 24 Mar 2012 09:06:23 +0000 (10:06 +0100)]
Issue #14154: Reimplement the bigmem test memory watchdog as a subprocess.

13 years agoFix indentation.
Georg Brandl [Sat, 24 Mar 2012 07:12:41 +0000 (08:12 +0100)]
Fix indentation.

13 years agoIssue #7652: Enable linking of _decimal.so against an installed libmpdec.
Stefan Krah [Fri, 23 Mar 2012 18:06:27 +0000 (19:06 +0100)]
Issue #7652: Enable linking of _decimal.so against an installed libmpdec.

13 years agoMerge.
Stefan Krah [Fri, 23 Mar 2012 15:37:41 +0000 (16:37 +0100)]
Merge.

13 years agoFix formatting after removing tabs.
Stefan Krah [Fri, 23 Mar 2012 15:34:41 +0000 (16:34 +0100)]
Fix formatting after removing tabs.

13 years agoWhitespace.
Stefan Krah [Fri, 23 Mar 2012 15:22:05 +0000 (16:22 +0100)]
Whitespace.

13 years agoNull merge for backported fix.
Vinay Sajip [Fri, 23 Mar 2012 14:38:12 +0000 (14:38 +0000)]
Null merge for backported fix.

13 years agoCloses #14314: backported fix.
Vinay Sajip [Fri, 23 Mar 2012 14:36:22 +0000 (14:36 +0000)]
Closes #14314: backported fix.

13 years agoattempt to fix asyncore buildbot failure
Giampaolo Rodola' [Fri, 23 Mar 2012 14:09:58 +0000 (15:09 +0100)]
attempt to fix asyncore buildbot failure

13 years agoattempt to fix asyncore buildbot failure
Giampaolo Rodola' [Fri, 23 Mar 2012 14:07:07 +0000 (15:07 +0100)]
attempt to fix asyncore buildbot failure

13 years agoUse the same exception hierarchy as decimal.py. FloatOperation now also
Stefan Krah [Fri, 23 Mar 2012 13:46:48 +0000 (14:46 +0100)]
Use the same exception hierarchy as decimal.py. FloatOperation now also
inherits from TypeError. Cleanup in module initialization to make repeated
import failures robust.

13 years agoMerge with 3.2
Kristján Valur Jónsson [Fri, 23 Mar 2012 12:52:11 +0000 (12:52 +0000)]
Merge with 3.2

13 years agoFix typo when "PyObject*" was changed to "identifier"
Kristján Valur Jónsson [Fri, 23 Mar 2012 12:50:53 +0000 (12:50 +0000)]
Fix typo when "PyObject*" was changed to "identifier"

13 years agomerge
Giampaolo Rodola' [Fri, 23 Mar 2012 12:29:49 +0000 (13:29 +0100)]
merge

13 years agofix failing asyncore test as per http://bugs.python.org/issue10340#msg156586
Giampaolo Rodola' [Fri, 23 Mar 2012 12:29:01 +0000 (13:29 +0100)]
fix failing asyncore test as per http://bugs.python.org/issue10340#msg156586

13 years agoIssue #13782: streamline argument type-checking in ET.Element
Eli Bendersky [Fri, 23 Mar 2012 12:24:20 +0000 (14:24 +0200)]
Issue #13782: streamline argument type-checking in ET.Element

append, extend and insert now consistently type-check their argument in both
the C and Python implementations, and raise TypeError for non-Element
argument.

Added tests

13 years ago#14380: Make actual default match docs, fix __init__ order.
R David Murray [Fri, 23 Mar 2012 02:40:44 +0000 (22:40 -0400)]
#14380: Make actual default match docs, fix __init__ order.

Éric pointed out that given that the default was documented as None, someone
would reasonably pass that to get the default behavior.  In fixing the code to
use None, I noticed that the change to _charset was being done after it had
already been passed to MIMENonMultipart.  The change to the test verifies that
the order is now correct.

13 years ago#14380: Have MIMEText defaults to utf-8 when passed non-ASCII unicode
R David Murray [Fri, 23 Mar 2012 02:17:51 +0000 (22:17 -0400)]
#14380: Have MIMEText defaults to utf-8 when passed non-ASCII unicode

Previously it would just accept the unicode, which would wind up as unicode in
the transfer-encoded message object, which is just wrong.

Patch by Jeff Knupp.

13 years agoMerge with 3.2 (Issue #14387)
Kristján Valur Jónsson [Thu, 22 Mar 2012 23:13:48 +0000 (23:13 +0000)]
Merge with 3.2 (Issue #14387)

13 years agoIssue #14387 : undefine 'small' so that it doesn't clash with Windows headers.
Kristján Valur Jónsson [Thu, 22 Mar 2012 23:10:37 +0000 (23:10 +0000)]
Issue #14387 : undefine 'small' so that it doesn't clash with Windows headers.

13 years agoFix indentation.
Georg Brandl [Thu, 22 Mar 2012 21:20:21 +0000 (22:20 +0100)]
Fix indentation.