]> granicus.if.org Git - python/log
python
12 years agoMerged cookbook improvement from 3.2.
Vinay Sajip [Tue, 28 Feb 2012 08:06:01 +0000 (08:06 +0000)]
Merged cookbook improvement from 3.2.

12 years agoImproved logging cookbook example.
Vinay Sajip [Tue, 28 Feb 2012 08:05:23 +0000 (08:05 +0000)]
Improved logging cookbook example.

12 years agoMerge with 3.2.
Georg Brandl [Tue, 28 Feb 2012 07:21:49 +0000 (08:21 +0100)]
Merge with 3.2.

12 years agoFix markup errors.
Georg Brandl [Tue, 28 Feb 2012 07:21:40 +0000 (08:21 +0100)]
Fix markup errors.

12 years agoUpdate importlib.invalidate_caches() to be more general.
Brett Cannon [Mon, 27 Feb 2012 23:15:42 +0000 (18:15 -0500)]
Update importlib.invalidate_caches() to be more general.

12 years agoMore debug output
Antoine Pitrou [Mon, 27 Feb 2012 21:01:25 +0000 (22:01 +0100)]
More debug output

12 years agoImprove debugging output for test failure
Antoine Pitrou [Mon, 27 Feb 2012 19:04:05 +0000 (20:04 +0100)]
Improve debugging output for test failure

12 years agoIssue #13125: Silence spurious test_lib2to3 output when in non-verbose mode.
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.

12 years agoIssue #13125: Silence spurious test_lib2to3 output when in non-verbose mode.
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.

12 years agoSome corrections for the Doc/extending documentation. Closes #14129
Eli Bendersky [Mon, 27 Feb 2012 17:18:35 +0000 (19:18 +0200)]
Some corrections for the Doc/extending documentation. Closes #14129

12 years agoNull merge (fix is already in 3.3).
Stefan Krah [Mon, 27 Feb 2012 16:36:17 +0000 (17:36 +0100)]
Null merge (fix is already in 3.3).

12 years agoIssue #14125: backport refleak fix (d4adbf908983).
Stefan Krah [Mon, 27 Feb 2012 16:34:17 +0000 (17:34 +0100)]
Issue #14125: backport refleak fix (d4adbf908983).

12 years agotypo
Benjamin Peterson [Mon, 27 Feb 2012 15:59:10 +0000 (10:59 -0500)]
typo

12 years agoIssue #14125: Fix refleak in timemodule.c on Windows. Thanks sbt for pointing
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.

12 years agoIssue #14125: Fix multiprocessing refleak on Windows. Patch by sbt.
Stefan Krah [Mon, 27 Feb 2012 12:51:02 +0000 (13:51 +0100)]
Issue #14125: Fix multiprocessing refleak on Windows. Patch by sbt.

12 years agoMerged cookbook update for LogRecord customisation.
Vinay Sajip [Mon, 27 Feb 2012 11:57:25 +0000 (11:57 +0000)]
Merged cookbook update for LogRecord customisation.

12 years agoUpdated cookbook with information on customising LogRecords.
Vinay Sajip [Mon, 27 Feb 2012 11:56:29 +0000 (11:56 +0000)]
Updated cookbook with information on customising LogRecords.

12 years agoMerged upstream changes.
Vinay Sajip [Mon, 27 Feb 2012 11:03:55 +0000 (11:03 +0000)]
Merged upstream changes.

12 years agoMerged cookbook update from 3.2.
Vinay Sajip [Mon, 27 Feb 2012 11:03:26 +0000 (11:03 +0000)]
Merged cookbook update from 3.2.

12 years agoUpdated logging cookbook with info on alternative format styles.
Vinay Sajip [Mon, 27 Feb 2012 11:02:45 +0000 (11:02 +0000)]
Updated logging cookbook with info on alternative format styles.

12 years agoFix comparison bug with 'rc' versions in packaging.version (#11841).
É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.

12 years agoIssue #14113: Fix a test_strptime failure caused by changes to LC_ALL.
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.

12 years agoMerge
Antoine Pitrou [Mon, 27 Feb 2012 00:01:58 +0000 (01:01 +0100)]
Merge

12 years agoMerge
Antoine Pitrou [Mon, 27 Feb 2012 00:01:54 +0000 (01:01 +0100)]
Merge

12 years agoMerge
Antoine Pitrou [Mon, 27 Feb 2012 00:01:44 +0000 (01:01 +0100)]
Merge

12 years agoIssue #13521: dict.setdefault() now does only one lookup for the given key, making...
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.

12 years agoIssue #13521: dict.setdefault() now does only one lookup for the given key, making...
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.

12 years agoNull merge.
Nadeem Vawda [Sun, 26 Feb 2012 22:53:50 +0000 (00:53 +0200)]
Null merge.

12 years agoIssue #13873: Fix crash in test_zlib when running on a small (<4GB) tmpfs.
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.

12 years agoRemove duplicate label.
Georg Brandl [Sun, 26 Feb 2012 22:02:53 +0000 (23:02 +0100)]
Remove duplicate label.

12 years agothe days of pre-standard C compilers are gone
Benjamin Peterson [Sun, 26 Feb 2012 20:54:47 +0000 (15:54 -0500)]
the days of pre-standard C compilers are gone

12 years agoIssue #14080: fix sporadic test_imp failure. Patch by Stefan Krah.
Antoine Pitrou [Sun, 26 Feb 2012 17:09:50 +0000 (18:09 +0100)]
Issue #14080: fix sporadic test_imp failure.  Patch by Stefan Krah.

12 years agoIssue #14107: test: Fix a deadlock involving the memory watchdog thread.
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.

12 years agoIssue #14123: Explicitly mention that old style % string formatting has caveats but...
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.

12 years agoIssue #14123: Explicitly mention that old style % string formatting has caveats
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.

12 years agoClose issue #6210: Implement PEP 409
Nick Coghlan [Sun, 26 Feb 2012 07:49:52 +0000 (17:49 +1000)]
Close issue #6210: Implement PEP 409

12 years ago#14081: The sep and maxsplit parameter to str.split, bytes.split, and bytearray.split...
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.

12 years agoMerge 3.2
Éric Araujo [Sun, 26 Feb 2012 03:07:37 +0000 (04:07 +0100)]
Merge 3.2

12 years agoBranch merge
Éric Araujo [Sun, 26 Feb 2012 03:01:54 +0000 (04:01 +0100)]
Branch merge

12 years agoPort the #6884 fix to packaging
Éric Araujo [Sun, 26 Feb 2012 03:01:34 +0000 (04:01 +0100)]
Port the #6884 fix to packaging

12 years agoBranch merge
Éric Araujo [Sun, 26 Feb 2012 03:00:43 +0000 (04:00 +0100)]
Branch merge

12 years agoSet archive format explicitly in one distutils test
Éric Araujo [Sun, 26 Feb 2012 01:14:33 +0000 (02:14 +0100)]
Set archive format explicitly in one distutils test

12 years agoFix typo in “seperat{or,ion}”
Éric Araujo [Sun, 26 Feb 2012 01:14:08 +0000 (02:14 +0100)]
Fix typo in “seperat{or,ion}”

12 years agoUse const markup instead of a misleading string literal
Éric Araujo [Sun, 26 Feb 2012 01:13:30 +0000 (02:13 +0100)]
Use const markup instead of a misleading string literal

12 years ago#14114: merge with 3.2.
Ezio Melotti [Sat, 25 Feb 2012 17:26:39 +0000 (19:26 +0200)]
#14114: merge with 3.2.

12 years ago#14114: don't include copybutton.js in the htmlhelp output.
Ezio Melotti [Sat, 25 Feb 2012 17:24:24 +0000 (19:24 +0200)]
#14114: don't include copybutton.js in the htmlhelp output.

12 years agoMerge from 3.2
Éric Araujo [Sat, 25 Feb 2012 16:26:44 +0000 (17:26 +0100)]
Merge from 3.2

12 years agoAdd news entry for previous commit
Éric Araujo [Sat, 25 Feb 2012 15:57:39 +0000 (16:57 +0100)]
Add news entry for previous commit

12 years agoAdd test file for scripts in Tools (#13447).
É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.

12 years agoMerge 3.2
Éric Araujo [Sat, 25 Feb 2012 15:32:18 +0000 (16:32 +0100)]
Merge 3.2

12 years agoFix long-standing bugs with MANIFEST.in parsing on Windows (#6884).
É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.

12 years agoUse assertEqual in test_strptime for better failure messages (cf. issue #14113).
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).

12 years ago- Issue #10181: New memoryview implementation fixes multiple ownership
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.

12 years agoMerge with 3.2
Martin v. Löwis [Sat, 25 Feb 2012 09:47:30 +0000 (10:47 +0100)]
Merge with 3.2

12 years agoPackage mime.types
Martin v. Löwis [Sat, 25 Feb 2012 09:40:13 +0000 (10:40 +0100)]
Package mime.types

12 years agounused imports, pep8
Philip Jenvey [Sat, 25 Feb 2012 05:48:17 +0000 (21:48 -0800)]
unused imports, pep8

12 years agoClose #14095: type.__new__() doesn't remove __qualname__ key from the class
Victor Stinner [Sat, 25 Feb 2012 00:22:36 +0000 (01:22 +0100)]
Close #14095: type.__new__() doesn't remove __qualname__ key from the class
dict anymore if the key is present. Reject also non-string qualified names.
And fix reference leaks in type.__new__().

12 years agoOops, revert unwanted changes
Victor Stinner [Fri, 24 Feb 2012 23:47:08 +0000 (00:47 +0100)]
Oops, revert unwanted changes

12 years agoIssue #14107: fix bigmem tests on str.capitalize(), str.swapcase() and
Victor Stinner [Fri, 24 Feb 2012 23:43:27 +0000 (00:43 +0100)]
Issue #14107: fix bigmem tests on str.capitalize(), str.swapcase() and
str.title(). Compute correctly how much memory is required for the test
(memuse).

12 years agomerge heads
Benjamin Peterson [Fri, 24 Feb 2012 16:49:07 +0000 (11:49 -0500)]
merge heads

12 years agomerge 3.2
Benjamin Peterson [Fri, 24 Feb 2012 16:48:47 +0000 (11:48 -0500)]
merge 3.2

12 years agomerge 3.2.2 release branch for rc
Benjamin Peterson [Fri, 24 Feb 2012 16:47:29 +0000 (11:47 -0500)]
merge 3.2.2 release branch for rc

12 years agoSimplify importib._resolve_name().
Brett Cannon [Fri, 24 Feb 2012 16:20:54 +0000 (11:20 -0500)]
Simplify importib._resolve_name().

12 years agoFix compilation error under Windows (and warnings too).
Antoine Pitrou [Fri, 24 Feb 2012 12:30:46 +0000 (13:30 +0100)]
Fix compilation error under Windows (and warnings too).

12 years ago#13973: move a couple of imports at module level. Patch by Tshepang Lekhonkhobe.
Ezio Melotti [Fri, 24 Feb 2012 10:44:04 +0000 (12:44 +0200)]
#13973: move a couple of imports at module level.  Patch by Tshepang Lekhonkhobe.

12 years agomerge
Brett Cannon [Fri, 24 Feb 2012 01:48:13 +0000 (20:48 -0500)]
merge

12 years agoTurn _return_module() into _handle_fromlist().
Brett Cannon [Fri, 24 Feb 2012 01:47:57 +0000 (20:47 -0500)]
Turn _return_module() into _handle_fromlist().

12 years agoIssue #13706: Fix format(float, "n") for locale with non-ASCII decimal point (e.g...
Victor Stinner [Fri, 24 Feb 2012 00:44:47 +0000 (01:44 +0100)]
Issue #13706: Fix format(float, "n") for locale with non-ASCII decimal point (e.g. ps_aF)

12 years agomerge
Brett Cannon [Fri, 24 Feb 2012 00:34:55 +0000 (19:34 -0500)]
merge

12 years agoMake the benchmark recording more sensible for importlib.test.benchmark.
Brett Cannon [Fri, 24 Feb 2012 00:34:35 +0000 (19:34 -0500)]
Make the benchmark recording more sensible for importlib.test.benchmark.

12 years agoIssue #13706: Fix format(int, "n") for locale with non-ASCII thousands separator
Victor Stinner [Thu, 23 Feb 2012 23:37:51 +0000 (00:37 +0100)]
Issue #13706: Fix format(int, "n") for locale with non-ASCII thousands separator

 * Decode thousands separator and decimal point using PyUnicode_DecodeLocale()
   (from the locale encoding), instead of decoding them implicitly from latin1
 * Remove _PyUnicode_InsertThousandsGroupingLocale(), it was not used
 * Change _PyUnicode_InsertThousandsGrouping() API to return the maximum
   character if unicode is NULL
 * Replace MIN/MAX macros by Py_MIN/Py_MAX
 * stringlib/undef.h undefines STRINGLIB_IS_UNICODE
 * stringlib/localeutil.h only supports Unicode

12 years agomerge
Brett Cannon [Thu, 23 Feb 2012 23:30:04 +0000 (18:30 -0500)]
merge

12 years agoImproper type for __package__ should raise TypeError, not ValueError.
Brett Cannon [Thu, 23 Feb 2012 23:29:12 +0000 (18:29 -0500)]
Improper type for __package__ should raise TypeError, not ValueError.

12 years agoDo a type check instead of an interface check.
Brett Cannon [Thu, 23 Feb 2012 23:18:48 +0000 (18:18 -0500)]
Do a type check instead of an interface check.

12 years agoIssue #13846: Enhance time.monotonic() documentation
Victor Stinner [Thu, 23 Feb 2012 23:10:45 +0000 (00:10 +0100)]
Issue #13846: Enhance time.monotonic() documentation

12 years agoMerged upstream changes.
Vinay Sajip [Thu, 23 Feb 2012 20:55:35 +0000 (20:55 +0000)]
Merged upstream changes.

12 years agoMerged upstream changes.
Vinay Sajip [Thu, 23 Feb 2012 20:53:40 +0000 (20:53 +0000)]
Merged upstream changes.

12 years agoMerged upstream changes.
Vinay Sajip [Thu, 23 Feb 2012 20:51:57 +0000 (20:51 +0000)]
Merged upstream changes.

12 years agoMerged fix added for recent changes in non-threading environments.
Vinay Sajip [Thu, 23 Feb 2012 20:51:18 +0000 (20:51 +0000)]
Merged fix added for recent changes in non-threading environments.

12 years agoFix added for recent changes in non-threading environments.
Vinay Sajip [Thu, 23 Feb 2012 20:49:08 +0000 (20:49 +0000)]
Fix added for recent changes in non-threading environments.

12 years agoAdded tag v3.2.3rc1 for changeset 7085403daf43
Georg Brandl [Thu, 23 Feb 2012 20:19:41 +0000 (21:19 +0100)]
Added tag v3.2.3rc1 for changeset 7085403daf43

12 years agoUpdate copyright year. v3.2.3rc1
Georg Brandl [Thu, 23 Feb 2012 20:19:25 +0000 (21:19 +0100)]
Update copyright year.

12 years agoAdd 3.2.3 to license.
Georg Brandl [Thu, 23 Feb 2012 20:19:18 +0000 (21:19 +0100)]
Add 3.2.3 to license.

12 years agomerge with 3.2
Georg Brandl [Thu, 23 Feb 2012 20:17:27 +0000 (21:17 +0100)]
merge with 3.2

12 years agomerge heads
Georg Brandl [Thu, 23 Feb 2012 20:16:49 +0000 (21:16 +0100)]
merge heads

12 years agoBump version to 3.2.3rc1.
Georg Brandl [Thu, 23 Feb 2012 20:14:12 +0000 (21:14 +0100)]
Bump version to 3.2.3rc1.

12 years agoUpdate pydoc topics.
Georg Brandl [Thu, 23 Feb 2012 20:12:41 +0000 (21:12 +0100)]
Update pydoc topics.

12 years agoFix markup errors.
Georg Brandl [Thu, 23 Feb 2012 20:12:39 +0000 (21:12 +0100)]
Fix markup errors.

12 years agoMerged logging flush/close changes from 3.2.
Vinay Sajip [Thu, 23 Feb 2012 20:03:49 +0000 (20:03 +0000)]
Merged logging flush/close changes from 3.2.

12 years agologging: Added locking in flush() and close() handler methods. Thanks to Fayaz Yusuf...
Vinay Sajip [Thu, 23 Feb 2012 19:45:52 +0000 (19:45 +0000)]
logging: Added locking in flush() and close() handler methods. Thanks to Fayaz Yusuf Khan for the suggestion.

12 years agomerge 3.2
Benjamin Peterson [Thu, 23 Feb 2012 15:54:36 +0000 (10:54 -0500)]
merge 3.2

12 years agomerge 3.1
Benjamin Peterson [Thu, 23 Feb 2012 15:54:28 +0000 (10:54 -0500)]
merge 3.1

12 years agoupdate copyright year
Benjamin Peterson [Thu, 23 Feb 2012 15:53:44 +0000 (10:53 -0500)]
update copyright year

12 years agomerge 3.2
Benjamin Peterson [Thu, 23 Feb 2012 15:48:22 +0000 (10:48 -0500)]
merge 3.2

12 years agomerge 3.1 (with 3.1.5rc1 release tag)
Benjamin Peterson [Thu, 23 Feb 2012 15:48:03 +0000 (10:48 -0500)]
merge 3.1 (with 3.1.5rc1 release tag)

12 years agoAdded tag v3.1.5rc1 for changeset ee26aca3219c
Benjamin Peterson [Thu, 23 Feb 2012 15:46:00 +0000 (10:46 -0500)]
Added tag v3.1.5rc1 for changeset ee26aca3219c

12 years agoversion now 3.1.5rc1 v3.1.5rc1
Benjamin Peterson [Thu, 23 Feb 2012 15:45:48 +0000 (10:45 -0500)]
version now 3.1.5rc1

12 years agoMerge
Brett Cannon [Thu, 23 Feb 2012 15:17:56 +0000 (10:17 -0500)]
Merge

12 years agoSimplify zlib bigmem tests.
Nadeem Vawda [Thu, 23 Feb 2012 12:23:17 +0000 (14:23 +0200)]
Simplify zlib bigmem tests.

12 years agoFix previous fix (for test_zlib) to work on 32-bit systems.
Nadeem Vawda [Thu, 23 Feb 2012 12:16:15 +0000 (14:16 +0200)]
Fix previous fix (for test_zlib) to work on 32-bit systems.