]>
granicus.if.org Git - python/log
Georg Brandl [Sun, 4 Mar 2012 15:12:02 +0000 (16:12 +0100)]
Fix encoding handling of the pydoc-topics writer.
Armin Ronacher [Sun, 4 Mar 2012 13:07:57 +0000 (13:07 +0000)]
Updated tokenize to support the inverse byte literals new in 3.3
Armin Ronacher [Sun, 4 Mar 2012 12:33:51 +0000 (12:33 +0000)]
Basic documentation for PEP 414
Armin Ronacher [Sun, 4 Mar 2012 12:04:06 +0000 (12:04 +0000)]
Basic support for PEP 414 without docs or tests.
Eli Bendersky [Sun, 4 Mar 2012 05:15:21 +0000 (07:15 +0200)]
fix trailing whitespace
Eli Bendersky [Sun, 4 Mar 2012 05:14:03 +0000 (07:14 +0200)]
Issue #14128: Exposing Element as an actual type from _elementtree, rather than a factory function.
This makes the C implementation more aligned with the Python implementation.
Also added some tests to ensure that Element is now a type and that it can
be subclassed.
Victor Stinner [Sun, 4 Mar 2012 00:34:37 +0000 (01:34 +0100)]
Close #14085: remove assertions from PyUnicode_WRITE macro
Add checks in PyUnicode_WriteChar() and convert PyUnicode_New() assertion to a
test raising a Python exception.
Vinay Sajip [Sat, 3 Mar 2012 16:20:37 +0000 (16:20 +0000)]
Fixed problem with diagnostic output.
Antoine Pitrou [Sat, 3 Mar 2012 01:38:37 +0000 (02:38 +0100)]
- Issue #14177: marshal.loads() now raises TypeError when given an unicode
string. Patch by Guilherme Gonçalves.
Antoine Pitrou [Sat, 3 Mar 2012 01:35:32 +0000 (02:35 +0100)]
Issue #14177: marshal.loads() now raises TypeError when given an unicode string.
Patch by Guilherme Gonçalves.
Victor Stinner [Sat, 3 Mar 2012 00:32:57 +0000 (01:32 +0100)]
Close #13550: Remove the debug machinery from the threading module: remove
verbose arguments from all threading classes and functions.
Victor Stinner [Fri, 2 Mar 2012 21:54:03 +0000 (22:54 +0100)]
Issue #13964: signal.sigtimedwait() timeout is now a float instead of a tuple
Add a private API to convert an int or float to a C timespec structure.
Antoine Pitrou [Fri, 2 Mar 2012 17:22:23 +0000 (18:22 +0100)]
Simplify code in marshal.c.
Antoine Pitrou [Fri, 2 Mar 2012 17:16:38 +0000 (18:16 +0100)]
Issue #14172: Fix reference leak when marshalling a buffer-like object (other than a bytes object).
Antoine Pitrou [Fri, 2 Mar 2012 17:12:43 +0000 (18:12 +0100)]
Issue #14172: Fix reference leak when marshalling a buffer-like object (other than a bytes object).
Eli Bendersky [Fri, 2 Mar 2012 05:43:08 +0000 (07:43 +0200)]
merge 3.2 heads
Eli Bendersky [Fri, 2 Mar 2012 05:41:23 +0000 (07:41 +0200)]
Merge 3.2
Eli Bendersky [Fri, 2 Mar 2012 05:37:13 +0000 (07:37 +0200)]
Issue #11379: add a note in xml.dom.minidom suggesting to use etree in some cases
Vinay Sajip [Fri, 2 Mar 2012 01:24:13 +0000 (01:24 +0000)]
Closes #14158: merged test file resilience fix from 3.2.
Vinay Sajip [Fri, 2 Mar 2012 01:01:13 +0000 (01:01 +0000)]
Closes #14158: improved resilience to test files left behind.
Petri Lehtinen [Thu, 1 Mar 2012 19:49:39 +0000 (21:49 +0200)]
Merge branch '3.2'
Issue #13491.
Petri Lehtinen [Thu, 1 Mar 2012 19:18:34 +0000 (21:18 +0200)]
sqlite3: Port documentation changes from the 2.7 branch
Issue #13491.
Eli Bendersky [Thu, 1 Mar 2012 17:07:55 +0000 (19:07 +0200)]
Add missing 'versionadded' for shlex.quote; closes #14165
Antoine Pitrou [Thu, 1 Mar 2012 15:28:14 +0000 (16:28 +0100)]
Issue #14159: Fix the len() of weak containers (WeakSet, WeakKeyDictionary, WeakValueDictionary) to return a better approximation when some objects are dead or dying.
Moreover, the implementation is now O(1) rather than O(n).
Thanks to Yury Selivanov for reporting.
Antoine Pitrou [Thu, 1 Mar 2012 15:26:35 +0000 (16:26 +0100)]
Issue #14159: Fix the len() of weak containers (WeakSet, WeakKeyDictionary, WeakValueDictionary) to return a better approximation when some objects are dead or dying.
Moreover, the implementation is now O(1) rather than O(n).
Thanks to Yury Selivanov for reporting.
Philip Jenvey [Thu, 1 Mar 2012 00:21:25 +0000 (16:21 -0800)]
update skip reason
Philip Jenvey [Thu, 1 Mar 2012 00:16:15 +0000 (16:16 -0800)]
also skip test_device_encoding when stdin isn't a tty
Brett Cannon [Wed, 29 Feb 2012 23:31:31 +0000 (18:31 -0500)]
Issue #14153 Create _Py_device_encoding() to prevent _io from having to import
the os module.
Stefan Krah [Wed, 29 Feb 2012 16:47:21 +0000 (17:47 +0100)]
Issue #10181: Add warning that structure layouts in memoryobject.h and
object.h have changed.
Stefan Krah [Wed, 29 Feb 2012 16:27:21 +0000 (17:27 +0100)]
Add PyMemoryView_FromMemory() to whatsnew/3.3.
Stefan Krah [Wed, 29 Feb 2012 13:14:00 +0000 (14:14 +0100)]
Issue #14152: Merge fix from 3.2.
Stefan Krah [Wed, 29 Feb 2012 13:10:53 +0000 (14:10 +0100)]
Issue #14152: Restore the Include/*.h dependencies for extension builds.
Ezio Melotti [Wed, 29 Feb 2012 12:06:56 +0000 (14:06 +0200)]
#14089: merge with 3.2.
Ezio Melotti [Wed, 29 Feb 2012 12:05:53 +0000 (14:05 +0200)]
#14089: increase coverage of the fractions module. Patch by Oleg Plakhotnyuk.
Ezio Melotti [Wed, 29 Feb 2012 11:40:11 +0000 (13:40 +0200)]
#14155: merge with 3.2.
Ezio Melotti [Wed, 29 Feb 2012 11:39:05 +0000 (13:39 +0200)]
#14155: remove duplication about search vs match in re doc.
Ezio Melotti [Wed, 29 Feb 2012 09:49:45 +0000 (11:49 +0200)]
#10713: merge with 3.2.
Ezio Melotti [Wed, 29 Feb 2012 09:48:44 +0000 (11:48 +0200)]
#10713: Improve documentation for \b and \B and add a few tests. Initial patch and tests by Martin Pool.
Larry Hastings [Wed, 29 Feb 2012 00:30:31 +0000 (16:30 -0800)]
Merge: Propagate changes for issues #13053 and #13086 from 2.7 to 3.2.
(Doc only.)
Larry Hastings [Wed, 29 Feb 2012 00:21:47 +0000 (16:21 -0800)]
Propagate changes for issues #13053 and #13086 from 2.7 to 3.2. (Doc only.)
Nadeem Vawda [Tue, 28 Feb 2012 22:24:46 +0000 (00:24 +0200)]
Merge: Give better failure messages in test_strptime (cf. issue #14113).
Nadeem Vawda [Tue, 28 Feb 2012 22:22:09 +0000 (00:22 +0200)]
Give better failure messages in test_strptime (cf. issue #14113).
Sandro Tosi [Tue, 28 Feb 2012 21:29:08 +0000 (22:29 +0100)]
merge with 3.2
Sandro Tosi [Tue, 28 Feb 2012 21:28:28 +0000 (22:28 +0100)]
s/div/truediv/; thanks to Félix-Antoine Fortin from docs@
Vinay Sajip [Tue, 28 Feb 2012 19:02:43 +0000 (19:02 +0000)]
Added additional diagnostics to help with #12151.
Vinay Sajip [Tue, 28 Feb 2012 08:06:01 +0000 (08:06 +0000)]
Merged cookbook improvement from 3.2.
Vinay Sajip [Tue, 28 Feb 2012 08:05:23 +0000 (08:05 +0000)]
Improved logging cookbook example.
Georg Brandl [Tue, 28 Feb 2012 07:21:49 +0000 (08:21 +0100)]
Merge with 3.2.
Georg Brandl [Tue, 28 Feb 2012 07:21:40 +0000 (08:21 +0100)]
Fix markup errors.
Brett Cannon [Mon, 27 Feb 2012 23:15:42 +0000 (18:15 -0500)]
Update importlib.invalidate_caches() to be more general.
Antoine Pitrou [Mon, 27 Feb 2012 21:01:25 +0000 (22:01 +0100)]
More debug output
Antoine Pitrou [Mon, 27 Feb 2012 19:04:05 +0000 (20:04 +0100)]
Improve debugging output for test failure
Antoine Pitrou [Mon, 27 Feb 2012 18:56:37 +0000 (19:56 +0100)]
Issue #13125: Silence spurious test_lib2to3 output when in non-verbose mode.
Patch by Mikhail Novikov.
Antoine Pitrou [Mon, 27 Feb 2012 18:55:36 +0000 (19:55 +0100)]
Issue #13125: Silence spurious test_lib2to3 output when in non-verbose mode.
Patch by Mikhail Novikov.
Eli Bendersky [Mon, 27 Feb 2012 17:18:35 +0000 (19:18 +0200)]
Some corrections for the Doc/extending documentation. Closes #14129
Stefan Krah [Mon, 27 Feb 2012 16:36:17 +0000 (17:36 +0100)]
Null merge (fix is already in 3.3).
Stefan Krah [Mon, 27 Feb 2012 16:34:17 +0000 (17:34 +0100)]
Issue #14125: backport refleak fix (
d4adbf908983 ).
Benjamin Peterson [Mon, 27 Feb 2012 15:59:10 +0000 (10:59 -0500)]
typo
Stefan Krah [Mon, 27 Feb 2012 15:30:26 +0000 (16:30 +0100)]
Issue #14125: Fix refleak in timemodule.c on Windows. Thanks sbt for pointing
out the location of the problem. MS_WINDOWS currently implies !HAVE_WCSFTIME,
so the addition of !defined(HAVE_WCSFTIME) is for readability.
Stefan Krah [Mon, 27 Feb 2012 12:51:02 +0000 (13:51 +0100)]
Issue #14125: Fix multiprocessing refleak on Windows. Patch by sbt.
Vinay Sajip [Mon, 27 Feb 2012 11:57:25 +0000 (11:57 +0000)]
Merged cookbook update for LogRecord customisation.
Vinay Sajip [Mon, 27 Feb 2012 11:56:29 +0000 (11:56 +0000)]
Updated cookbook with information on customising LogRecords.
Vinay Sajip [Mon, 27 Feb 2012 11:03:55 +0000 (11:03 +0000)]
Merged upstream changes.
Vinay Sajip [Mon, 27 Feb 2012 11:03:26 +0000 (11:03 +0000)]
Merged cookbook update from 3.2.
Vinay Sajip [Mon, 27 Feb 2012 11:02:45 +0000 (11:02 +0000)]
Updated logging cookbook with info on alternative format styles.
Éric Araujo [Mon, 27 Feb 2012 10:47:44 +0000 (11:47 +0100)]
Fix comparison bug with 'rc' versions in packaging.version (#11841).
I added some tests in
2105ab8553b7 and found no bug, but it turns out
that the doctest is not actually run. While converting the doctest to
unittest style, I stumbled upon this bug again and this time applied the
code patch provided by Filip Gruszczyński.
Stefan Krah [Mon, 27 Feb 2012 09:18:51 +0000 (10:18 +0100)]
Issue #14113: Fix a test_strptime failure caused by changes to LC_ALL.
Antoine Pitrou [Mon, 27 Feb 2012 00:01:58 +0000 (01:01 +0100)]
Merge
Antoine Pitrou [Mon, 27 Feb 2012 00:01:54 +0000 (01:01 +0100)]
Merge
Antoine Pitrou [Mon, 27 Feb 2012 00:01:44 +0000 (01:01 +0100)]
Merge
Antoine Pitrou [Sun, 26 Feb 2012 23:59:34 +0000 (00:59 +0100)]
Issue #13521: dict.setdefault() now does only one lookup for the given key, making it "atomic" for many purposes.
Patch by Filip Gruszczyński.
Antoine Pitrou [Sun, 26 Feb 2012 23:45:12 +0000 (00:45 +0100)]
Issue #13521: dict.setdefault() now does only one lookup for the given key, making it "atomic" for many purposes.
Patch by Filip Gruszczyński.
Nadeem Vawda [Sun, 26 Feb 2012 22:53:50 +0000 (00:53 +0200)]
Null merge.
Nadeem Vawda [Sun, 26 Feb 2012 22:42:58 +0000 (00:42 +0200)]
Issue #13873: Fix crash in test_zlib when running on a small (<4GB) tmpfs.
Georg Brandl [Sun, 26 Feb 2012 22:02:53 +0000 (23:02 +0100)]
Remove duplicate label.
Benjamin Peterson [Sun, 26 Feb 2012 20:54:47 +0000 (15:54 -0500)]
the days of pre-standard C compilers are gone
Antoine Pitrou [Sun, 26 Feb 2012 17:09:50 +0000 (18:09 +0100)]
Issue #14080: fix sporadic test_imp failure. Patch by Stefan Krah.
Charles-François Natali [Sun, 26 Feb 2012 16:27:32 +0000 (17:27 +0100)]
Issue #14107: test: Fix a deadlock involving the memory watchdog thread.
Gregory P. Smith [Sun, 26 Feb 2012 09:54:46 +0000 (01:54 -0800)]
Issue #14123: Explicitly mention that old style % string formatting has caveats but is not going away any time soon.
Gregory P. Smith [Sun, 26 Feb 2012 09:54:07 +0000 (01:54 -0800)]
Issue #14123: Explicitly mention that old style % string formatting has caveats
but is not going away any time soon.
Nick Coghlan [Sun, 26 Feb 2012 07:49:52 +0000 (17:49 +1000)]
Close issue #6210: Implement PEP 409
Ezio Melotti [Sun, 26 Feb 2012 07:39:55 +0000 (09:39 +0200)]
#14081: The sep and maxsplit parameter to str.split, bytes.split, and bytearray.split may now be passed as keyword arguments.
Éric Araujo [Sun, 26 Feb 2012 03:07:37 +0000 (04:07 +0100)]
Merge 3.2
Éric Araujo [Sun, 26 Feb 2012 03:01:54 +0000 (04:01 +0100)]
Branch merge
Éric Araujo [Sun, 26 Feb 2012 03:01:34 +0000 (04:01 +0100)]
Port the #6884 fix to packaging
Éric Araujo [Sun, 26 Feb 2012 03:00:43 +0000 (04:00 +0100)]
Branch merge
Éric Araujo [Sun, 26 Feb 2012 01:14:33 +0000 (02:14 +0100)]
Set archive format explicitly in one distutils test
Éric Araujo [Sun, 26 Feb 2012 01:14:08 +0000 (02:14 +0100)]
Fix typo in “seperat{or,ion}”
Éric Araujo [Sun, 26 Feb 2012 01:13:30 +0000 (02:13 +0100)]
Use const markup instead of a misleading string literal
Ezio Melotti [Sat, 25 Feb 2012 17:26:39 +0000 (19:26 +0200)]
#14114: merge with 3.2.
Ezio Melotti [Sat, 25 Feb 2012 17:24:24 +0000 (19:24 +0200)]
#14114: don't include copybutton.js in the htmlhelp output.
Éric Araujo [Sat, 25 Feb 2012 16:26:44 +0000 (17:26 +0100)]
Merge from 3.2
Éric Araujo [Sat, 25 Feb 2012 15:57:39 +0000 (16:57 +0100)]
Add news entry for previous commit
Éric Araujo [Sat, 25 Feb 2012 15:57:04 +0000 (16:57 +0100)]
Add test file for scripts in Tools (#13447).
When people find bugs in scripts such as reindent.py, msgfmt.py or
pygettext.py, we have to try to reproduce the bug manually, apply a fix
and test manually again. The alternative is to only read the code and
trust that it works. This test file is a way to stop that
unsatisfactory state of things and write proper unit tests instead.
Éric Araujo [Sat, 25 Feb 2012 15:32:18 +0000 (16:32 +0100)]
Merge 3.2
Éric Araujo [Sat, 25 Feb 2012 15:28:05 +0000 (16:28 +0100)]
Fix long-standing bugs with MANIFEST.in parsing on Windows (#6884).
These regex changes fix a number of issues for distutils on Windows:
- #6884: impossible to include a file starting with 'build'
- #9691 and #14004: sdist includes too many files
- #13193: test_filelist failures
This commit replaces the incorrect changes done in
0a94e2f807c7 and
90b30d62caf2 to fix #13193; we were too eager to fix the test failures
and I did not study the code enough before greenlighting patches. This
time we have unit tests from the problems reported by users to be sure
we have the right fix.
Thanks to Nadeem Vawda for his help.
Nadeem Vawda [Sat, 25 Feb 2012 13:58:36 +0000 (15:58 +0200)]
Use assertEqual in test_strptime for better failure messages (cf. issue #14113).
Stefan Krah [Sat, 25 Feb 2012 11:24:21 +0000 (12:24 +0100)]
- Issue #10181: New memoryview implementation fixes multiple ownership
and lifetime issues of dynamically allocated Py_buffer members (#9990)
as well as crashes (#8305, #7433). Many new features have been added
(See whatsnew/3.3), and the documentation has been updated extensively.
The ndarray test object from _testbuffer.c implements all aspects of
PEP-3118, so further development towards the complete implementation
of the PEP can proceed in a test-driven manner.
Thanks to Nick Coghlan, Antoine Pitrou and Pauli Virtanen for review
and many ideas.
- Issue #12834: Fix incorrect results of memoryview.tobytes() for
non-contiguous arrays.
- Issue #5231: Introduce memoryview.cast() method that allows changing
format and shape without making a copy of the underlying memory.
Martin v. Löwis [Sat, 25 Feb 2012 09:47:30 +0000 (10:47 +0100)]
Merge with 3.2
Martin v. Löwis [Sat, 25 Feb 2012 09:40:13 +0000 (10:40 +0100)]
Package mime.types