]>
granicus.if.org Git - python/log
Victor Stinner [Thu, 1 Sep 2011 23:00:40 +0000 (01:00 +0200)]
Issue #12636: IDLE reads the coding cookie when executing a Python script.
Victor Stinner [Thu, 1 Sep 2011 22:57:04 +0000 (00:57 +0200)]
IDLE: fix some RessourceWarning, reuse tokenize.open()
Victor Stinner [Thu, 1 Sep 2011 22:11:43 +0000 (00:11 +0200)]
Remove unused variable if Python is build without threads
Benjamin Peterson [Thu, 1 Sep 2011 20:32:31 +0000 (16:32 -0400)]
make sure to initialize the method wrapper type
Antoine Pitrou [Thu, 1 Sep 2011 19:37:43 +0000 (21:37 +0200)]
Issue #12802: the Windows error ERROR_DIRECTORY (numbered 267) is now
mapped to POSIX errno ENOTDIR (previously EINVAL).
Ezio Melotti [Thu, 1 Sep 2011 05:11:28 +0000 (08:11 +0300)]
From RFC 3629 5- and 6-bytes UTF-8 sequences are invalid, so remove them from the doc.
Ross Lagerwall [Thu, 1 Sep 2011 04:58:52 +0000 (06:58 +0200)]
Remove duplicate text in os documentation.
Benjamin Peterson [Thu, 1 Sep 2011 02:13:03 +0000 (22:13 -0400)]
accept bytes for the AST 'string' type
This is a temporary kludge and all is well in 3.3.
Éric Araujo [Wed, 31 Aug 2011 14:48:17 +0000 (16:48 +0200)]
Fix test_sysconfig when run from a Python installed under /site (#10086).
Patch by Hallvard B Furuseth.
Antoine Pitrou [Tue, 30 Aug 2011 21:39:34 +0000 (23:39 +0200)]
Try to fix one of the bigmem tests in test_pickle
Amaury Forgeot d'Arc [Tue, 30 Aug 2011 20:02:51 +0000 (22:02 +0200)]
Issue #11241: subclasses of ctypes.Array can now be subclassed.
Amaury Forgeot d'Arc [Tue, 30 Aug 2011 19:40:20 +0000 (21:40 +0200)]
Issue #9651: Fix a crash when ctypes.create_string_buffer(0) was passed to
some functions like file.write().
Éric Araujo [Tue, 30 Aug 2011 14:05:31 +0000 (16:05 +0200)]
Branch merge
Antoine Pitrou [Mon, 29 Aug 2011 22:27:10 +0000 (00:27 +0200)]
Issue #12847: Fix a crash with negative PUT and LONG_BINPUT arguments in
the C pickle implementation.
Antoine Pitrou [Mon, 29 Aug 2011 21:09:33 +0000 (23:09 +0200)]
Issue #11564: Avoid crashes when trying to pickle huge objects or containers
(more than 2**31 items). Instead, in most cases, an OverflowError is raised.
Éric Araujo [Mon, 29 Aug 2011 19:48:39 +0000 (21:48 +0200)]
Make bdist_* commands respect --skip-build passed to bdist (#10946)
Charles-François Natali [Sun, 28 Aug 2011 15:51:43 +0000 (17:51 +0200)]
Issue #12287: Fix a stack corruption in ossaudiodev module when the FD is
greater than FD_SETSIZE.
Nadeem Vawda [Sun, 28 Aug 2011 09:26:46 +0000 (11:26 +0200)]
Issue #12839: Fix crash in zlib module due to version mismatch.
If the version of zlib used to compile the zlib module is incompatible
with the one that is actually linked in, then calls into zlib will fail.
This can leave attributes of the z_stream uninitialized, so we must take
care to avoid segfaulting by trying to use an invalid pointer.
Fix by Richard M. Tew.
Antoine Pitrou [Sat, 27 Aug 2011 23:23:52 +0000 (01:23 +0200)]
Make tests faster by reaping threads only at the end
Antoine Pitrou [Sat, 27 Aug 2011 23:20:42 +0000 (01:20 +0200)]
Provide a better diagnosis on socket errors
Antoine Pitrou [Sat, 27 Aug 2011 16:46:17 +0000 (18:46 +0200)]
Add pattern to .hgignore in order to mask PC/generrmap.exe
Nadeem Vawda [Sat, 27 Aug 2011 13:22:05 +0000 (15:22 +0200)]
Make regrtest complain when -M and -j are used together.
-j doesn't pass the memlimit on to child processes, so this doesn't work at
present, and even if it did, running multiple bigmem tests at once would
usually not be desirable (since you generally want to devote as much of the
available RAM as possible to each test).
Éric Araujo [Fri, 26 Aug 2011 14:38:40 +0000 (16:38 +0200)]
Remove outdated pointer to optparse (fixes #11360).
The doc already points to argparse.
Éric Araujo [Fri, 26 Aug 2011 14:30:22 +0000 (16:30 +0200)]
Branch merge
Éric Araujo [Thu, 25 Aug 2011 22:45:18 +0000 (00:45 +0200)]
Document the "optional" argument of distutils’ Extension class
Éric Araujo [Thu, 25 Aug 2011 22:44:37 +0000 (00:44 +0200)]
Fix type information in distutils API reference (#9302).
Initial patch by Yue Shuaijie.
Éric Araujo [Thu, 25 Aug 2011 22:10:12 +0000 (00:10 +0200)]
Make the list of docs contributors sorted again
Éric Araujo [Thu, 25 Aug 2011 22:03:22 +0000 (00:03 +0200)]
Turn two ifs into one in the code I commited a few days ago
Antoine Pitrou [Thu, 25 Aug 2011 16:32:02 +0000 (18:32 +0200)]
Issue #12333: fix test_distutils failures under Solaris and derivatives
Georg Brandl [Thu, 25 Aug 2011 09:52:26 +0000 (11:52 +0200)]
Close #12838: fix range() call.
Éric Araujo [Tue, 23 Aug 2011 23:29:10 +0000 (01:29 +0200)]
Fix distutils tests on Windows (#12678).
- First, support.fixup_build_ext (already used to set proper
library_dirs value under Unix shared builds) gains the ability to
correctly set the debug attribute under Windows debug builds.
- Second, the filename for the extension module gets a _d suffix under
debug builds.
- Third, the test code properly puts our customized build_ext object
into an internal dictionary to make sure that the install command will
later use our object instead of re-creating one. That’s the downside
of using low-level APIs in our test code: we have to manually push
knobs and turn handles that would otherwise be handled behind the
scenes.
Thanks to Nadeem for the testing.
Antoine Pitrou [Tue, 23 Aug 2011 17:49:13 +0000 (19:49 +0200)]
Merge
Charles-François Natali [Tue, 23 Aug 2011 17:46:46 +0000 (19:46 +0200)]
Issue #12821: Fix test_fcntl failures on OpenBSD 5.
Antoine Pitrou [Tue, 23 Aug 2011 17:46:22 +0000 (19:46 +0200)]
Issue #11657: Fix sending file descriptors over 255 over a multiprocessing Pipe.
Also added some tests.
Antoine Pitrou [Tue, 23 Aug 2011 17:32:26 +0000 (19:32 +0200)]
A warning doesn't equate a failed test
(this broken -F with e.g. test_multiprocessing)
Ezio Melotti [Mon, 22 Aug 2011 21:37:08 +0000 (00:37 +0300)]
Fix indentation and add a skip decorator.
Ezio Melotti [Mon, 22 Aug 2011 11:08:38 +0000 (14:08 +0300)]
#9200: The str.is* methods now work with strings that contain non-BMP characters even in narrow Unicode builds.
Nadeem Vawda [Sun, 21 Aug 2011 20:35:41 +0000 (22:35 +0200)]
Issue #12678: Fix distutils sdist test on Windows.
Patch by Jeremy Kloth.
Éric Araujo [Sun, 21 Aug 2011 15:03:19 +0000 (17:03 +0200)]
Fix distutils test_install for shared CPython builds
Éric Araujo [Sun, 21 Aug 2011 15:02:07 +0000 (17:02 +0200)]
Factor out the build_ext fixup for shared Python builds.
I need this to fix the failing test_install.
Éric Araujo [Sun, 21 Aug 2011 12:29:18 +0000 (14:29 +0200)]
Add missing name in shutil
Éric Araujo [Sun, 21 Aug 2011 10:53:37 +0000 (12:53 +0200)]
Add missing closing paren in docstring (thanks Ezio)
Sandro Tosi [Sat, 20 Aug 2011 22:16:18 +0000 (00:16 +0200)]
#5301: add image/vnd.microsoft.icon (.ico) MIME type
Éric Araujo [Sat, 20 Aug 2011 17:57:42 +0000 (19:57 +0200)]
Branch merge
Éric Araujo [Sat, 20 Aug 2011 17:55:58 +0000 (19:55 +0200)]
Branch merge
Antoine Pitrou [Sat, 20 Aug 2011 17:48:43 +0000 (19:48 +0200)]
Issue #12213: make it clear that BufferedRWPair shouldn't be called with the
same object as reader and writer, and deemphasize it in document order.
Sandro Tosi [Sat, 20 Aug 2011 15:05:56 +0000 (17:05 +0200)]
#12787: link original MultiCall proposal to webarchive and in a footnote
Antoine Pitrou [Sat, 20 Aug 2011 12:39:23 +0000 (14:39 +0200)]
Issue #12213: Fix a buffering bug with interleaved reads and writes that
could appear on BufferedRandom streams.
Antoine Pitrou [Sat, 20 Aug 2011 12:15:03 +0000 (14:15 +0200)]
Issue #12791: Break reference cycles early when a generator exits with an exception.
Victor Stinner [Sat, 20 Aug 2011 12:01:05 +0000 (14:01 +0200)]
Issue #12326: sys.platform is now always 'linux2' on Linux
Even if Python is compiled on Linux 3.
Éric Araujo [Sat, 20 Aug 2011 05:25:39 +0000 (07:25 +0200)]
Dedent example in docstring
Éric Araujo [Sat, 20 Aug 2011 05:08:51 +0000 (07:08 +0200)]
Add a test for extension modules in the distutils record file.
I made a note a month ago that install --record wrote incorrect entries
for extension modules (I think the problem was that the first character
of the file was stripped), so I’m now adding a test to try to reproduce
that in the current versions.
Éric Araujo [Sat, 20 Aug 2011 05:00:41 +0000 (07:00 +0200)]
Rework test_record a bit to make the test more exact
Éric Araujo [Sat, 20 Aug 2011 04:27:18 +0000 (06:27 +0200)]
Refactor the copying of xxmodule.c in distutils tests (#12141).
I need to copy this file in another test too, so I moved the support
code to distutils.tests.support and improved it:
- don’t skip when run from the Lib/distutils/tests directory
- use proper skip machinery instead of custom print/return/test suite
fiddling.
Sandro Tosi [Fri, 19 Aug 2011 20:54:50 +0000 (22:54 +0200)]
fix description of \r; thanks to Thomas Waldmann from docs@
Antoine Pitrou [Fri, 19 Aug 2011 18:32:34 +0000 (20:32 +0200)]
Fix typo in test names
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@
Éric Araujo [Fri, 19 Aug 2011 12:22:28 +0000 (14:22 +0200)]
Branch merge
É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:14:40 +0000 (07:14 +0100)]
Issue #12780: Removed checks in logging for .pyc/.pyo in __file__.
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:12:01 +0000 (05:12 +0200)]
Fix ResourceWarnings in test_subprocess.
É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: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: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: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:54:16 +0000 (13:54 -0500)]
merge heads
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 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:48:50 +0000 (10:48 -0500)]
NUL -> NULL
Benjamin Peterson [Wed, 17 Aug 2011 03:26:48 +0000 (22:26 -0500)]
fix possible refleaks
Sandro Tosi [Tue, 16 Aug 2011 18:03:11 +0000 (20:03 +0200)]
#12761: fix wording of zlib license section
É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 [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: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:28:57 +0000 (08:28 +0300)]
#12725: fix working. Patch by Ben Hayden.
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:21 +0000 (00:33 -0500)]
tokenize is just broken on test_pep3131.py
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 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: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:52:43 +0000 (19:52 +0200)]
Branch merge
É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:32 +0000 (19:31 +0200)]
it's 'rather than'; reported by James Bateman on docs@
É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
Antoine Pitrou [Thu, 11 Aug 2011 19:04:02 +0000 (21:04 +0200)]
Issue #12687: Fix a possible buffering bug when unpickling text mode (protocol 0, mostly) pickles.
Vinay Sajip [Thu, 11 Aug 2011 12:45:48 +0000 (13:45 +0100)]
Issue #12718: Add documentation on using custom importers.
Senthil Kumaran [Thu, 11 Aug 2011 01:24:37 +0000 (09:24 +0800)]
News item for Issue10087.