]>
granicus.if.org Git - python/log
Sandro Tosi [Fri, 19 Aug 2011 16:40:56 +0000 (18:40 +0200)]
merge with 3.2
Sandro Tosi [Fri, 19 Aug 2011 16:40:21 +0000 (18:40 +0200)]
mention RFC1123 as origin of 4-year digit; thanks to John Haxby from docs@
Antoine Pitrou [Fri, 19 Aug 2011 16:03:14 +0000 (18:03 +0200)]
Issue #12778: Reduce memory consumption when JSON-encoding a large container of many small objects.
Éric Araujo [Fri, 19 Aug 2011 15:47:52 +0000 (17:47 +0200)]
Restore $HOME after test has run (should fix #12765)
Éric Araujo [Fri, 19 Aug 2011 12:23:47 +0000 (14:23 +0200)]
Merge 3.2
Éric Araujo [Fri, 19 Aug 2011 12:22:52 +0000 (14:22 +0200)]
Branch merge
Éric Araujo [Fri, 19 Aug 2011 12:22:28 +0000 (14:22 +0200)]
Branch merge
Éric Araujo [Fri, 19 Aug 2011 07:36:59 +0000 (09:36 +0200)]
Merge fixes for #12256 and typos from 3.2
Éric Araujo [Fri, 19 Aug 2011 07:28:46 +0000 (09:28 +0200)]
Typo
Éric Araujo [Fri, 19 Aug 2011 07:07:46 +0000 (09:07 +0200)]
Mention virtual subclasses in the glossary entry for ABCs (#12256).
I added a link from the term “virtual subclass” to the glossary entry
for ABCs but this was not enough, now the glossary briefly defines
“virtual” and links to the abc module doc which contains more mentions
of virtual subclasses.
Vinay Sajip [Fri, 19 Aug 2011 06:15:45 +0000 (07:15 +0100)]
Issue #12780: Merged fix from 3.2.
Vinay Sajip [Fri, 19 Aug 2011 06:14:40 +0000 (07:14 +0100)]
Issue #12780: Removed checks in logging for .pyc/.pyo in __file__.
Eli Bendersky [Fri, 19 Aug 2011 03:31:10 +0000 (06:31 +0300)]
Merge from 3.2
Issue #12672: remove confusing part of sentence in documentation
Eli Bendersky [Fri, 19 Aug 2011 03:29:51 +0000 (06:29 +0300)]
Issue #12672: remove confusing part of sentence in documentation
Nadeem Vawda [Fri, 19 Aug 2011 03:14:40 +0000 (05:14 +0200)]
Merge: Fix ResourceWarnings in test_subprocess.
Nadeem Vawda [Fri, 19 Aug 2011 03:12:01 +0000 (05:12 +0200)]
Fix ResourceWarnings in test_subprocess.
Éric Araujo [Fri, 19 Aug 2011 01:53:51 +0000 (03:53 +0200)]
Mark abc.abstractproperty as a property
Éric Araujo [Fri, 19 Aug 2011 01:44:36 +0000 (03:44 +0200)]
Fix typo in command name
Éric Araujo [Fri, 19 Aug 2011 01:19:36 +0000 (03:19 +0200)]
Merge 3.2
Éric Araujo [Fri, 19 Aug 2011 01:12:38 +0000 (03:12 +0200)]
Fix instance I missed in
59f7bbe1236c (#
1626300 )
Éric Araujo [Fri, 19 Aug 2011 00:55:11 +0000 (02:55 +0200)]
Make logging call lazy
Éric Araujo [Fri, 19 Aug 2011 00:30:15 +0000 (02:30 +0200)]
Remove obsolete term + indicate how to find the program (#
1626300 ).
Suggested by Terry J. Reedy.
Éric Araujo [Fri, 19 Aug 2011 00:17:03 +0000 (02:17 +0200)]
Link isinstance/issubclass to the ABC glossary entry (#12256)
Éric Araujo [Thu, 18 Aug 2011 23:45:12 +0000 (01:45 +0200)]
Don’t quote characters twice.
``code`` markup is enough to mark command-line fragments or to talk
about a character. ``'c'`` is still used for actual Python string
objects. I did a similar change in optparse.rst in r86521.
I’ve also ported two minor changes from the 3.3 version of the file
(removing an unnecessary module name in a class directive, adding a
comma).
Éric Araujo [Thu, 18 Aug 2011 23:30:26 +0000 (01:30 +0200)]
Don’t use “arg” for “argument”
Éric Araujo [Thu, 18 Aug 2011 22:56:57 +0000 (00:56 +0200)]
Improve “pysetup create” help messages.
The example version numbers were invalid and “package” was misused. I
also made lines shorter, replaced “e-mail” with “email” (more common in
the stdlib and I believe in English generally) and tweaked a few other
things.
Éric Araujo [Thu, 18 Aug 2011 22:53:20 +0000 (00:53 +0200)]
Fix typo
Éric Araujo [Thu, 18 Aug 2011 22:53:04 +0000 (00:53 +0200)]
Remove class that was only useful with Sphinx autodoc
Éric Araujo [Thu, 18 Aug 2011 22:49:18 +0000 (00:49 +0200)]
Add a few missing source links from 2.7 and harmonize lib docs headers
Éric Araujo [Thu, 18 Aug 2011 22:44:31 +0000 (00:44 +0200)]
Minor improvements to BadZipFile and BadZipfile docs.
I made the doc for the compat alias BadZipfile shorter and used a
directive to document deprecation.
I figured there was no point of talking about zipfile.error (“the old
name” that’s older than the other old name BadZipfile) in the 3.x docs
so I just removed it.
Éric Araujo [Thu, 18 Aug 2011 22:41:23 +0000 (00:41 +0200)]
Fix markup to get a target instead of a comment
Éric Araujo [Thu, 18 Aug 2011 22:40:46 +0000 (00:40 +0200)]
Fix a typo and touch up blank lines
Éric Araujo [Thu, 18 Aug 2011 22:39:57 +0000 (00:39 +0200)]
Add missing reST target for one section of this file
Éric Araujo [Thu, 18 Aug 2011 22:39:19 +0000 (00:39 +0200)]
Avoid splitting a word between a link and text
Charles-François Natali [Thu, 18 Aug 2011 22:25:07 +0000 (00:25 +0200)]
Issue #12650: fix failures on some buildbots, when a subprocess takes a long
time to spawn.
Charles-François Natali [Thu, 18 Aug 2011 22:24:00 +0000 (00:24 +0200)]
Issue #12650: fix failures on some buildbots, when a subprocess takes a long
time to spawn.
Benjamin Peterson [Thu, 18 Aug 2011 18:55:38 +0000 (13:55 -0500)]
merge heads
Benjamin Peterson [Thu, 18 Aug 2011 18:55:31 +0000 (13:55 -0500)]
merge 3.2
Benjamin Peterson [Thu, 18 Aug 2011 18:54:16 +0000 (13:54 -0500)]
merge heads
Benjamin Peterson [Thu, 18 Aug 2011 18:52:19 +0000 (13:52 -0500)]
merge 3.2
Benjamin Peterson [Thu, 18 Aug 2011 18:51:47 +0000 (13:51 -0500)]
the named of the character is actually NUL
Charles-François Natali [Thu, 18 Aug 2011 17:11:29 +0000 (19:11 +0200)]
Issue #12650: Fix a race condition where a subprocess.Popen could leak
resources (FD/zombie) when killed at the wrong time.
Charles-François Natali [Thu, 18 Aug 2011 16:49:39 +0000 (18:49 +0200)]
Issue #12650: Fix a race condition where a subprocess.Popen could leak
resources (FD/zombie) when killed at the wrong time.
Benjamin Peterson [Thu, 18 Aug 2011 15:49:16 +0000 (10:49 -0500)]
merge 3.2
Benjamin Peterson [Thu, 18 Aug 2011 15:48:50 +0000 (10:48 -0500)]
NUL -> NULL
Victor Stinner [Wed, 17 Aug 2011 18:49:41 +0000 (20:49 +0200)]
Issue #12326: don't test the major version of sys.platform
Use startswith, instead of ==, when testing sys.platform to support
new platforms like Linux 3 or OpenBSD 5.
Benjamin Peterson [Wed, 17 Aug 2011 17:05:13 +0000 (12:05 -0500)]
change word
Benjamin Peterson [Wed, 17 Aug 2011 17:03:47 +0000 (12:03 -0500)]
make __doc__ mutable on heaptypes (closes #12773)
Benjamin Peterson [Wed, 17 Aug 2011 16:54:03 +0000 (11:54 -0500)]
factor out common checks for setting special type attributes
Benjamin Peterson [Wed, 17 Aug 2011 16:48:23 +0000 (11:48 -0500)]
improve test name
Benjamin Peterson [Wed, 17 Aug 2011 03:28:23 +0000 (22:28 -0500)]
crush other possible refleaks in this section
Benjamin Peterson [Wed, 17 Aug 2011 03:27:42 +0000 (22:27 -0500)]
merge 3.2
Benjamin Peterson [Wed, 17 Aug 2011 03:26:48 +0000 (22:26 -0500)]
fix possible refleaks
Benjamin Peterson [Tue, 16 Aug 2011 23:53:26 +0000 (18:53 -0500)]
complain when a class variable shadows a name in __slots__ (closes #12766)
Benjamin Peterson [Tue, 16 Aug 2011 22:46:44 +0000 (17:46 -0500)]
merge heads
Benjamin Peterson [Tue, 16 Aug 2011 22:46:04 +0000 (17:46 -0500)]
some *nixes decided not to call init process 1 (closes #12763)
Sandro Tosi [Tue, 16 Aug 2011 18:08:04 +0000 (20:08 +0200)]
merge heads
Sandro Tosi [Tue, 16 Aug 2011 18:03:50 +0000 (20:03 +0200)]
merge with 3.2
Sandro Tosi [Tue, 16 Aug 2011 18:03:11 +0000 (20:03 +0200)]
#12761: fix wording of zlib license section
Antoine Pitrou [Tue, 16 Aug 2011 18:02:26 +0000 (20:02 +0200)]
Use -n for tests under Windows
Éric Araujo [Tue, 16 Aug 2011 17:13:58 +0000 (19:13 +0200)]
Branch merge
Éric Araujo [Tue, 16 Aug 2011 17:11:00 +0000 (19:11 +0200)]
Merge Makefile fix from 3.2 (thanks Georg)
Éric Araujo [Tue, 16 Aug 2011 17:10:24 +0000 (19:10 +0200)]
Move versionadded directive to the top level, as we do in other files
Éric Araujo [Tue, 16 Aug 2011 17:09:56 +0000 (19:09 +0200)]
Fix typo
Éric Araujo [Tue, 16 Aug 2011 17:05:56 +0000 (19:05 +0200)]
Revert change that was not a syntax fix but actually a behavior change
Ezio Melotti [Tue, 16 Aug 2011 16:03:41 +0000 (19:03 +0300)]
#9723: refactor regex.
Ezio Melotti [Mon, 15 Aug 2011 11:28:46 +0000 (14:28 +0300)]
#12204: merge with 3.2.
Ezio Melotti [Mon, 15 Aug 2011 11:27:19 +0000 (14:27 +0300)]
#12204: document that str.upper().isupper() might be False and add a note about cased characters.
Ezio Melotti [Mon, 15 Aug 2011 06:26:28 +0000 (09:26 +0300)]
#12266: merge with 3.2.
Ezio Melotti [Mon, 15 Aug 2011 06:09:57 +0000 (09:09 +0300)]
#12266: Fix str.capitalize() to correctly uppercase/lowercase titlecased and cased non-letter characters.
Ezio Melotti [Sun, 14 Aug 2011 05:29:49 +0000 (08:29 +0300)]
#12725: merge with 3.2.
Ezio Melotti [Sun, 14 Aug 2011 05:28:57 +0000 (08:28 +0300)]
#12725: fix working. Patch by Ben Hayden.
Antoine Pitrou [Sat, 13 Aug 2011 23:51:52 +0000 (01:51 +0200)]
Monotonic, not monotonous
Antoine Pitrou [Sat, 13 Aug 2011 18:40:32 +0000 (20:40 +0200)]
Followup to
8e824e09924a : fix regression on 32-bit builds
Antoine Pitrou [Sat, 13 Aug 2011 18:15:19 +0000 (20:15 +0200)]
Issue #12744: Fix inefficient representation of integers
between 2**31 and 2**63 on systems with a 64-bit C "long".
Nadeem Vawda [Sat, 13 Aug 2011 13:43:49 +0000 (15:43 +0200)]
Issue #12669: Fix test_curses so that it can run on the buildbots.
Nadeem Vawda [Sat, 13 Aug 2011 13:42:50 +0000 (15:42 +0200)]
Fix incorrect comment in zlib.Decompress.flush().
Reported by Oleg Oshmyan in issue #12646.
Nadeem Vawda [Sat, 13 Aug 2011 13:22:40 +0000 (15:22 +0200)]
Issue #12646: Add an 'eof' attribute to zlib.Decompress.
This will make it easier to detect truncated input streams.
Also, make zlib's error messages more consistent.
Georg Brandl [Sat, 13 Aug 2011 09:48:40 +0000 (11:48 +0200)]
Merge with 3.2.
Georg Brandl [Sat, 13 Aug 2011 09:48:12 +0000 (11:48 +0200)]
Fix #11513: wrong exception handling for the case that GzipFile itself raises an IOError.
Benjamin Peterson [Sat, 13 Aug 2011 05:33:29 +0000 (00:33 -0500)]
merge 3.2
Benjamin Peterson [Sat, 13 Aug 2011 05:33:21 +0000 (00:33 -0500)]
tokenize is just broken on test_pep3131.py
Benjamin Peterson [Sat, 13 Aug 2011 04:35:46 +0000 (23:35 -0500)]
merge 3.2
Benjamin Peterson [Sat, 13 Aug 2011 04:35:34 +0000 (23:35 -0500)]
normalization is different between unicode builds, so use a new non-BMP char and add normalization test
Benjamin Peterson [Sat, 13 Aug 2011 04:10:50 +0000 (23:10 -0500)]
include header with PyAST_Validate
Benjamin Peterson [Sat, 13 Aug 2011 03:18:19 +0000 (22:18 -0500)]
merge 3.2 (#12732)
Benjamin Peterson [Sat, 13 Aug 2011 03:17:18 +0000 (22:17 -0500)]
in narrow builds, make sure to test codepoints as identifier characters (closes #12732)
This fixes the use of Unicode identifiers outside the BMP in narrow builds.
Sandro Tosi [Fri, 12 Aug 2011 22:40:08 +0000 (00:40 +0200)]
merge with 3.2
Sandro Tosi [Fri, 12 Aug 2011 22:39:46 +0000 (00:39 +0200)]
let PySequence_Check me a link; thanks to tomo cocoa from docs@
Éric Araujo [Fri, 12 Aug 2011 17:53:13 +0000 (19:53 +0200)]
Merge 3.2
Éric Araujo [Fri, 12 Aug 2011 17:53:02 +0000 (19:53 +0200)]
Branch merge
Éric Araujo [Fri, 12 Aug 2011 17:52:43 +0000 (19:52 +0200)]
Branch merge
Éric Araujo [Fri, 12 Aug 2011 17:51:35 +0000 (19:51 +0200)]
Clean up test_shutil, to facilitate upcoming improvements (#12721).
The tests now have two convenience functions to wrap os.path.join, open
and read or write instead of four or six slightly different functions.
The new functions accept a tuple of path segments but not a list
anymore, as it makes no sense to use a list here; I have also removed
the default value for the contents in write_file, as I find it better to
have the contents at the call site.
For simple open then read/write calls, I have left the usual idiom (with
open + read/write), as it is short and readable enough.
I’ve also changed some convoluted cleanup code to just use rmtree, and
removed dubious LBYL os.path.exists checks. The tests still pass on my
machine, and leave no file in $TMP. test_shutil is not as clean as it
could be, but I’ll stop here.
Initial patch provided by Hynek Schlawack, in preparation for a new
feature with new tests in #12715.
Éric Araujo [Fri, 12 Aug 2011 17:40:05 +0000 (19:40 +0200)]
Update crlf and lfcr scripts for 3.x bytes semantics (#12032).
Changes to crlf originally by Victor Stinner for 3.3, copied to lfcr by
me. Manually tested.
Sandro Tosi [Fri, 12 Aug 2011 17:31:56 +0000 (19:31 +0200)]
merge with 3.2
Sandro Tosi [Fri, 12 Aug 2011 17:31:32 +0000 (19:31 +0200)]
it's 'rather than'; reported by James Bateman on docs@
Éric Araujo [Fri, 12 Aug 2011 16:03:30 +0000 (18:03 +0200)]
Merge 3.2
Éric Araujo [Fri, 12 Aug 2011 15:59:25 +0000 (17:59 +0200)]
Brench merge
Éric Araujo [Fri, 12 Aug 2011 15:50:08 +0000 (17:50 +0200)]
patchcheck: don’t talk about the test suite when no code file were changed.
The line about the test suite will still get printed for changes in
Tools for example, which aren’t covered by the test suite, but it’s not
a big deal IMO.
Éric Araujo [Fri, 12 Aug 2011 15:40:25 +0000 (17:40 +0200)]
Branch merge