]>
granicus.if.org Git - python/log
Raymond Hettinger [Fri, 30 Mar 2012 20:15:48 +0000 (13:15 -0700)]
Minor cleanup: add whitespace, add comments, bring function attribute updates together.
Eli Bendersky [Fri, 30 Mar 2012 13:38:33 +0000 (16:38 +0300)]
Issue #14065: Added cyclic GC support to ET.Element
Stefan Krah [Fri, 30 Mar 2012 12:19:21 +0000 (14:19 +0200)]
Merge.
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.
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.
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.
Eli Bendersky [Fri, 30 Mar 2012 08:02:05 +0000 (11:02 +0300)]
fix typo in glossary
Eli Bendersky [Fri, 30 Mar 2012 07:52:25 +0000 (10:52 +0300)]
Added the "provisional package" glossary term from PEP 411
Vinay Sajip [Thu, 29 Mar 2012 19:18:21 +0000 (20:18 +0100)]
Closes #14436: merged fix from 3.2.
Vinay Sajip [Thu, 29 Mar 2012 19:17:18 +0000 (20:17 +0100)]
Closes #14436: Convert msg + args to string before pickling.
Andrew Svetlov [Thu, 29 Mar 2012 16:50:46 +0000 (19:50 +0300)]
Merge with 3.2
Ross Lagerwall [Thu, 29 Mar 2012 16:08:48 +0000 (18:08 +0200)]
Issue #14442: Add missing errno import in test_smtplib.
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.
Michael Foord [Thu, 29 Mar 2012 12:46:50 +0000 (13:46 +0100)]
Fix typo in unittest.mock docs
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.
R David Murray [Thu, 29 Mar 2012 10:49:29 +0000 (06:49 -0400)]
Merge #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.
Georg Brandl [Thu, 29 Mar 2012 07:18:14 +0000 (09:18 +0200)]
Fix newlines.
Michael Foord [Wed, 28 Mar 2012 14:49:08 +0000 (15:49 +0100)]
Update unittest.mock.patch example
Michael Foord [Wed, 28 Mar 2012 14:41:28 +0000 (15:41 +0100)]
Fix unittest.mock.patch docstring
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
Michael Foord [Wed, 28 Mar 2012 14:32:08 +0000 (15:32 +0100)]
Adding an example to unittest.mock.patch documentation
Michael Foord [Wed, 28 Mar 2012 14:08:08 +0000 (15:08 +0100)]
Minor unittest.mock.patch doc / docstring improvement
Michael Foord [Wed, 28 Mar 2012 13:36:02 +0000 (14:36 +0100)]
Unsplit unittest.mock documentation
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.
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().
Stefan Krah [Tue, 27 Mar 2012 09:49:21 +0000 (11:49 +0200)]
Issue #11826: Fix memory leak in atexitmodule.
Georg Brandl [Tue, 27 Mar 2012 05:46:54 +0000 (07:46 +0200)]
merge with 3.2
Georg Brandl [Tue, 27 Mar 2012 05:46:46 +0000 (07:46 +0200)]
Closes #14411: remove outdated comment in rlcompleter docstring.
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.
Éric Araujo [Tue, 27 Mar 2012 03:35:31 +0000 (23:35 -0400)]
Fix typo
Eli Bendersky [Tue, 27 Mar 2012 02:57:23 +0000 (04:57 +0200)]
Fix doc typo noticed by Amaury Forgeot d'Arc
Victor Stinner [Mon, 26 Mar 2012 20:53:14 +0000 (22:53 +0200)]
Fix time.steady(strict=True): don't use CLOCK_REALTIME
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.
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.
Andrew Svetlov [Mon, 26 Mar 2012 19:14:13 +0000 (22:14 +0300)]
Update missed idlelib/NEWS.txt
Andrew Svetlov [Mon, 26 Mar 2012 19:11:46 +0000 (22:11 +0300)]
IDLE can be launched as python -m ildelib
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.
Benjamin Peterson [Mon, 26 Mar 2012 18:50:32 +0000 (14:50 -0400)]
grammar
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.
Sandro Tosi [Mon, 26 Mar 2012 17:36:44 +0000 (19:36 +0200)]
Issue #14410: merge with 3.2
Sandro Tosi [Mon, 26 Mar 2012 17:36:23 +0000 (19:36 +0200)]
Issue #14410: fix typo in argparse doc; patch by Tshepang Lekhonkhobe
R David Murray [Mon, 26 Mar 2012 17:34:46 +0000 (13:34 -0400)]
#14413: tweak word order in deprecation section
Vinay Sajip [Mon, 26 Mar 2012 16:17:39 +0000 (17:17 +0100)]
Updated handler documentation.
Vinay Sajip [Mon, 26 Mar 2012 16:09:58 +0000 (17:09 +0100)]
Minor documentation tweak.
Stefan Krah [Mon, 26 Mar 2012 13:11:22 +0000 (15:11 +0200)]
Issue #3367: Merge fix from 3.2.
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().
Benjamin Peterson [Mon, 26 Mar 2012 02:41:16 +0000 (22:41 -0400)]
merge 3.2
Benjamin Peterson [Mon, 26 Mar 2012 02:41:06 +0000 (22:41 -0400)]
merge heads
Benjamin Peterson [Mon, 26 Mar 2012 02:40:54 +0000 (22:40 -0400)]
kill this terribly outdated comment
Michael Foord [Sun, 25 Mar 2012 22:27:12 +0000 (23:27 +0100)]
unittest.mock: removed another bit of Python 2 only code
Michael Foord [Sun, 25 Mar 2012 22:12:55 +0000 (23:12 +0100)]
Adding unittest.mock documentation
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
Georg Brandl [Sun, 25 Mar 2012 18:41:06 +0000 (20:41 +0200)]
merge with 3.2
Georg Brandl [Sun, 25 Mar 2012 18:40:57 +0000 (20:40 +0200)]
Add missing files for new doc theme.
Georg Brandl [Sun, 25 Mar 2012 18:38:15 +0000 (20:38 +0200)]
merge heads
Michael Foord [Sun, 25 Mar 2012 18:35:22 +0000 (19:35 +0100)]
unittest.mock: remove another piece of Python 2 specific code
Georg Brandl [Sun, 25 Mar 2012 18:32:35 +0000 (20:32 +0200)]
merge with 3.2
Georg Brandl [Sun, 25 Mar 2012 18:31:57 +0000 (20:31 +0200)]
Switch to new "lighter" doc design.
Michael Foord [Sun, 25 Mar 2012 18:16:10 +0000 (19:16 +0100)]
Remove more Python 2 code from unittest.mock (obsolete function attributes)
Michael Foord [Sun, 25 Mar 2012 18:11:50 +0000 (19:11 +0100)]
Minor changes to the unittest.mock.mock_open helper
Michael Foord [Sun, 25 Mar 2012 18:07:33 +0000 (19:07 +0100)]
Addition of docstrings to unittest.mock helpers
Michael Foord [Sun, 25 Mar 2012 18:03:13 +0000 (19:03 +0100)]
unittest.mock: set file_spec on first use
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
Michael Foord [Sun, 25 Mar 2012 17:16:26 +0000 (18:16 +0100)]
Merge
Michael Foord [Sun, 25 Mar 2012 17:16:07 +0000 (18:16 +0100)]
unittest.mock.MagicMock objects are now unorderable by default
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.
Andrew Svetlov [Sun, 25 Mar 2012 08:44:59 +0000 (11:44 +0300)]
Remove extra spaces in doc example.
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.
Georg Brandl [Sun, 25 Mar 2012 06:43:32 +0000 (08:43 +0200)]
merge with 3.2
Georg Brandl [Sun, 25 Mar 2012 06:43:22 +0000 (08:43 +0200)]
Closes #14401: fix typos in curses howto.
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).
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).
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.
Martin v. Löwis [Sat, 24 Mar 2012 16:40:50 +0000 (17:40 +0100)]
merge 3.2
Martin v. Löwis [Sat, 24 Mar 2012 16:39:57 +0000 (17:39 +0100)]
Issue #14400: Fix typo.
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.
Georg Brandl [Sat, 24 Mar 2012 07:12:41 +0000 (08:12 +0100)]
Fix indentation.
Stefan Krah [Fri, 23 Mar 2012 18:06:27 +0000 (19:06 +0100)]
Issue #7652: Enable linking of _decimal.so against an installed libmpdec.
Stefan Krah [Fri, 23 Mar 2012 15:37:41 +0000 (16:37 +0100)]
Merge.
Stefan Krah [Fri, 23 Mar 2012 15:34:41 +0000 (16:34 +0100)]
Fix formatting after removing tabs.
Stefan Krah [Fri, 23 Mar 2012 15:22:05 +0000 (16:22 +0100)]
Whitespace.
Vinay Sajip [Fri, 23 Mar 2012 14:38:12 +0000 (14:38 +0000)]
Null merge for backported fix.
Vinay Sajip [Fri, 23 Mar 2012 14:36:22 +0000 (14:36 +0000)]
Closes #14314: backported fix.
Giampaolo Rodola' [Fri, 23 Mar 2012 14:09:58 +0000 (15:09 +0100)]
attempt to fix asyncore buildbot failure
Giampaolo Rodola' [Fri, 23 Mar 2012 14:07:07 +0000 (15:07 +0100)]
attempt to fix asyncore buildbot failure
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.
Kristján Valur Jónsson [Fri, 23 Mar 2012 12:52:11 +0000 (12:52 +0000)]
Merge with 3.2
Kristján Valur Jónsson [Fri, 23 Mar 2012 12:50:53 +0000 (12:50 +0000)]
Fix typo when "PyObject*" was changed to "identifier"
Giampaolo Rodola' [Fri, 23 Mar 2012 12:29:49 +0000 (13:29 +0100)]
merge
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
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
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.
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.
Kristján Valur Jónsson [Thu, 22 Mar 2012 23:13:48 +0000 (23:13 +0000)]
Merge with 3.2 (Issue #14387)
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.
Georg Brandl [Thu, 22 Mar 2012 21:20:21 +0000 (22:20 +0100)]
Fix indentation.
Ned Deily [Thu, 22 Mar 2012 20:34:11 +0000 (13:34 -0700)]
Issue #14382: Ensure new unittest.test.testmock is installed.
(Original patch by Vinay Sajip)
Benjamin Peterson [Thu, 22 Mar 2012 19:30:03 +0000 (15:30 -0400)]
merge 3.2
Giampaolo Rodola' [Thu, 22 Mar 2012 15:24:33 +0000 (16:24 +0100)]
fix #10340: properly handle EINVAL on OSX and also avoid to call handle_connect() in case of a disconnetected socket which is not meant to connect.