]>
granicus.if.org Git - python/log
Eli Bendersky [Sat, 30 Jul 2011 04:07:29 +0000 (07:07 +0300)]
Merge from 3.2: Issue #12531: add index entries to documentation of * and ** in function calls
Eli Bendersky [Sat, 30 Jul 2011 04:05:16 +0000 (07:05 +0300)]
Issue #12531: add index entries to documentation of * and ** in function calls
Benjamin Peterson [Sat, 30 Jul 2011 03:44:51 +0000 (22:44 -0500)]
merge 3.2
Benjamin Peterson [Sat, 30 Jul 2011 03:44:42 +0000 (22:44 -0500)]
remove duplicated type ready
Benjamin Peterson [Sat, 30 Jul 2011 03:44:14 +0000 (22:44 -0500)]
merge heads
Benjamin Peterson [Sat, 30 Jul 2011 03:43:45 +0000 (22:43 -0500)]
plug refleak
Senthil Kumaran [Sat, 30 Jul 2011 02:58:30 +0000 (10:58 +0800)]
fixing the smtplib.rst whitespaces.
Senthil Kumaran [Sat, 30 Jul 2011 02:57:28 +0000 (10:57 +0800)]
merge heads.
Senthil Kumaran [Sat, 30 Jul 2011 02:56:50 +0000 (10:56 +0800)]
Fix closes Issue11281 - smtplib.STMP gets source_address parameter, which adds the ability to bind to specific source address on a machine with multiple interfaces. Patch by Paulo Scardine.
Benjamin Peterson [Fri, 29 Jul 2011 23:27:44 +0000 (18:27 -0500)]
also make NotImplementedType callable
Benjamin Peterson [Fri, 29 Jul 2011 23:20:35 +0000 (18:20 -0500)]
merge heads
Benjamin Peterson [Fri, 29 Jul 2011 23:19:43 +0000 (18:19 -0500)]
make the types of None and Ellipsis callable
Antoine Pitrou [Fri, 29 Jul 2011 21:57:10 +0000 (23:57 +0200)]
Issue #12626: In regrtest, allow to filter tests using a glob filter
with the `-m` (or `--match`) option. This works with all test cases
using the unittest module. This is useful with long test suites
such as test_io or test_subprocess.
Antoine Pitrou [Fri, 29 Jul 2011 21:53:38 +0000 (23:53 +0200)]
Issue #12626: In regrtest, allow to filter tests using a glob filter
with the `-m` (or `--match`) option. This works with all test cases
using the unittest module. This is useful with long test suites
such as test_io or test_subprocess.
Benjamin Peterson [Fri, 29 Jul 2011 19:24:29 +0000 (14:24 -0500)]
bytes -> bytearray
Benjamin Peterson [Fri, 29 Jul 2011 19:23:47 +0000 (14:23 -0500)]
bytes should be verboten in sum() (fixes #12654)
Charles-François Natali [Fri, 29 Jul 2011 17:00:38 +0000 (19:00 +0200)]
Issue #12464: tempfile.TemporaryDirectory.cleanup() should not follow symlinks:
fix it. Patch by Petri Lehtinen.
Charles-François Natali [Fri, 29 Jul 2011 16:59:24 +0000 (18:59 +0200)]
Issue #12464: tempfile.TemporaryDirectory.cleanup() should not follow symlinks:
fix it. Patch by Petri Lehtinen.
Éric Araujo [Fri, 29 Jul 2011 16:10:12 +0000 (18:10 +0200)]
Merge from 3.2 (#9254, #8982, #9788)
Éric Araujo [Fri, 29 Jul 2011 16:04:24 +0000 (18:04 +0200)]
Document that atexit execution order is undefined (#9788)
Éric Araujo [Fri, 29 Jul 2011 15:59:17 +0000 (17:59 +0200)]
Add a link target for argparse.Namespace (#8982)
Éric Araujo [Fri, 29 Jul 2011 15:50:58 +0000 (17:50 +0200)]
Let the doc of __import__ link to importlib (#9254).
importlib.import_module eschews a number of issues that __import__ has.
Reviewed by Brett Cannon. (The docstring of __import__ was already
updated in
3d490c3a019e , for #7397.)
Éric Araujo [Fri, 29 Jul 2011 15:38:23 +0000 (17:38 +0200)]
Merge fix for #8887 from 3.2
Éric Araujo [Fri, 29 Jul 2011 15:03:55 +0000 (17:03 +0200)]
Make “pydoc somebuiltin.somemethod” work (#8887)
Jason R. Coombs [Fri, 29 Jul 2011 13:32:25 +0000 (09:32 -0400)]
Merge fix for reindent.py
Jason R. Coombs [Fri, 29 Jul 2011 13:31:56 +0000 (09:31 -0400)]
Issue #10639: spec_newline wasn't defined globally unless main() was called; now spec_newline is set at module import/execution
Éric Araujo [Fri, 29 Jul 2011 13:08:42 +0000 (15:08 +0200)]
Expand shlex.quote example (#9723)
Éric Araujo [Fri, 29 Jul 2011 12:34:51 +0000 (14:34 +0200)]
Merge 3.2
Éric Araujo [Fri, 29 Jul 2011 12:30:03 +0000 (14:30 +0200)]
Branch merge
Éric Araujo [Fri, 29 Jul 2011 12:24:08 +0000 (14:24 +0200)]
Branch merge
Raymond Hettinger [Fri, 29 Jul 2011 07:08:19 +0000 (00:08 -0700)]
Issue 12514: Use try/finally to assure that timeit restores GC when done.
Raymond Hettinger [Fri, 29 Jul 2011 07:02:04 +0000 (00:02 -0700)]
Issue 12514: Use try/finally to assure that timeit restores GC when done.
Eli Bendersky [Fri, 29 Jul 2011 06:33:50 +0000 (09:33 +0300)]
Merge from 3.2: Issue #12644: document the '%a' conversion in the old string formatting operations. Patch prepared together with Ezio Melotti
Eli Bendersky [Fri, 29 Jul 2011 06:30:42 +0000 (09:30 +0300)]
Issue #12644: document the '%a' conversion in the old string formatting operations. Patch prepared together with Ezio Melotti
Eli Bendersky [Fri, 29 Jul 2011 04:05:08 +0000 (07:05 +0300)]
Issue #12380: PyArg_ParseTuple now accepts a bytearray for the 'c' format.
As a side effect, this now allows the rjust, ljust and center methods of
bytes and bytearray to accept a bytearray argument.
Patch by Petri Lehtinen
Éric Araujo [Fri, 29 Jul 2011 01:28:40 +0000 (03:28 +0200)]
Change one line I missed in
7527f3f9829
Éric Araujo [Fri, 29 Jul 2011 00:37:21 +0000 (02:37 +0200)]
Minor packaging cleanup.
- Use shortcut dist.version instead of going through metadata;
- Use %r throughout to display project names and paths.
Éric Araujo [Fri, 29 Jul 2011 00:32:41 +0000 (02:32 +0200)]
Make TypeError message from Command.__init__ more useful
Éric Araujo [Fri, 29 Jul 2011 00:31:39 +0000 (02:31 +0200)]
Let all pysetup actions return a meaningful 0 or 1 exit code (#12222).
This will help scripts calling pysetup know if a command failed.
Printing/logging was also made more consistent, and a few things were
cleaned up. In particular, the error/Ctrl-C handling was moved from the
_run function up to the main function.
The run action is not fixed yet; it returns the dist.Distribution
instance, which is needed by test_uninstall and not trivial to fix.
Éric Araujo [Fri, 29 Jul 2011 00:20:39 +0000 (02:20 +0200)]
Let pysetup list exit with a non-zero code when no result is found (#11409).
“pysetup list” or “pysetup list --all” will continue to return 0 if no
distribution is found (it’s not an error), but “pysetup list
some.project” will now exit with 1 if no matching installed distribution
is found. Based on a patch by Kelsey Hightower.
Éric Araujo [Fri, 29 Jul 2011 01:11:09 +0000 (03:11 +0200)]
Merge from 3.2 (#10318, #12255, #12043, #12417 and other fixes)
Éric Araujo [Thu, 28 Jul 2011 21:35:29 +0000 (23:35 +0200)]
Modernize modulefinder module and tests a bit.
The tests don’t use an internal distutils function anymore, and use
regular assertEqual with sorted lists instead of a convoluted manual
diff.
Éric Araujo [Thu, 28 Jul 2011 21:10:25 +0000 (23:10 +0200)]
Fix reST role and missing word
Éric Araujo [Thu, 28 Jul 2011 21:08:11 +0000 (23:08 +0200)]
Branch merge
Éric Araujo [Thu, 28 Jul 2011 21:00:14 +0000 (23:00 +0200)]
Merge profile docs followup (#12417) from 3.1
Éric Araujo [Thu, 28 Jul 2011 20:56:24 +0000 (22:56 +0200)]
Remove mentions of previous license in profile module docs (#12417 followup).
Also remove an extra docstring.
Éric Araujo [Thu, 28 Jul 2011 20:50:18 +0000 (22:50 +0200)]
Turn raw URI into real link
Éric Araujo [Thu, 28 Jul 2011 20:49:11 +0000 (22:49 +0200)]
Update documentation for shutil.move (#12043) and fix a few typos.
Adding Sandro Tosi to Doc/ACKS for this patch and all his work on the
docs mailing list and on the bug tracker.
Éric Araujo [Thu, 28 Jul 2011 20:45:46 +0000 (22:45 +0200)]
Stop ignoring Mercurial merge conflits files (#12255).
R. David Murray and I think that it’s more useful to have these files
show up in the output of “hg status”, to let the user know that some
merged file have to be checked before commit. If you want to ignore
these files in your clones, it’s possible to do so from another ignore
file; see the bug report for directions.
I’m leaving the .gitignore file alone, as I don’t know how git users
work with merges and conflicts.
Éric Araujo [Thu, 28 Jul 2011 20:38:44 +0000 (22:38 +0200)]
Make VCSes ignore the compiled shared library file (#12255)
Raymond Hettinger [Thu, 28 Jul 2011 16:55:13 +0000 (09:55 -0700)]
Issue 12647: Add __bool__() method to the None object.
Senthil Kumaran [Thu, 28 Jul 2011 15:39:08 +0000 (23:39 +0800)]
merge from 3.2 - Fix closes Issue11439 Remove the SVN keywords from the code as it is no longer applicable in hg. Patch Contributed by Neil Muller.
Senthil Kumaran [Thu, 28 Jul 2011 14:32:49 +0000 (22:32 +0800)]
Fix closes Issue11439 Remove the SVN keywords from the code as it is no longer applicable in hg. Patch Contributed by Neil Muller.
Éric Araujo [Wed, 27 Jul 2011 22:28:28 +0000 (00:28 +0200)]
Remove indirection in threading (issue #10968).
The public names (Thread, Condition, etc.) used to be factory functions
returning instances of hidden classes (_Thread, _Condition, etc.),
because (if Guido recalls correctly) this code pre-dates the ability to
subclass extension types.
It is now possible to inherit from Thread and other classes, without
having to import the private underscored names like multiprocessing did.
A doc update will follow: a patch is under discussion on the issue.
Charles-François Natali [Wed, 27 Jul 2011 19:28:23 +0000 (21:28 +0200)]
Issue #11871: In test_threading.BarrierTests, bump the default barrier timeout
to avoid timing-dependent failures.
Charles-François Natali [Wed, 27 Jul 2011 19:26:42 +0000 (21:26 +0200)]
Issue #11871: In test_threading.BarrierTests, bump the default barrier timeout
to avoid timing-dependent failures.
Charles-François Natali [Wed, 27 Jul 2011 17:42:05 +0000 (19:42 +0200)]
Issue #12603: Fix pydoc.synopsis() on files with non-negative st_mtime.
Charles-François Natali [Wed, 27 Jul 2011 17:40:02 +0000 (19:40 +0200)]
Issue #12603: Fix pydoc.synopsis() on files with non-negative st_mtime.
Eli Bendersky [Wed, 27 Jul 2011 17:29:59 +0000 (20:29 +0300)]
fix doc typo for library/test.rst
Eli Bendersky [Wed, 27 Jul 2011 17:21:45 +0000 (20:21 +0300)]
Issue #11049: added test_support to regrtest.STDTESTS list
Éric Araujo [Wed, 27 Jul 2011 16:29:31 +0000 (18:29 +0200)]
Add shlex.quote function, to escape filenames and command lines (#9723).
This function used to live as pipes.quote, where it was undocumented but
used anyway. (An alias still exists for backward compatibility.) The
tests have been moved as is, but the code of the function was changed to
use a regex instead of a loop with string comparisons (at Ian Bicking’s
suggestion). I’m terrible at regexes, so any feedback is welcome.
Senthil Kumaran [Wed, 27 Jul 2011 15:34:29 +0000 (23:34 +0800)]
merge from 3.2 - Fix closes Issue12621 - Fix docstrings of find and rfind methods of bytes/bytearry/unicodeobject.
Senthil Kumaran [Wed, 27 Jul 2011 15:33:54 +0000 (23:33 +0800)]
Fix closes Issue12621 - Fix docstrings of find and rfind methods of bytes/bytearry/unicodeobject.
Ross Lagerwall [Wed, 27 Jul 2011 05:39:27 +0000 (07:39 +0200)]
Issue #12607: Merge with 3.2.
Ross Lagerwall [Wed, 27 Jul 2011 05:16:31 +0000 (07:16 +0200)]
Issue #12607: In subprocess, fix issue where if stdin, stdout or stderr is
given as a low fd, it gets overwritten.
Senthil Kumaran [Wed, 27 Jul 2011 01:32:04 +0000 (09:32 +0800)]
merge from 3.2 - Correcting issue 12576 fix, which resulted in buildbot failures.
Senthil Kumaran [Wed, 27 Jul 2011 01:31:03 +0000 (09:31 +0800)]
Correcting issue 12576 fix, which resulted in buildbot failures.
Ned Deily [Wed, 27 Jul 2011 01:19:09 +0000 (18:19 -0700)]
Issue #12590: IDLE editor window now always displays the first line
when opening a long file. With Tk 8.5, the first line was hidden.
Ned Deily [Wed, 27 Jul 2011 01:17:33 +0000 (18:17 -0700)]
Issue #12590: IDLE editor window now always displays the first line
when opening a long file. With Tk 8.5, the first line was hidden.
Senthil Kumaran [Wed, 27 Jul 2011 00:06:44 +0000 (08:06 +0800)]
merge from 3.2 - Fix closes Issue12576 - fix urlopen behavior on sites which do not send (or obsfuscates) Connection: Close header.
Senthil Kumaran [Wed, 27 Jul 2011 00:05:58 +0000 (08:05 +0800)]
Fix closes Issue12576 - fix urlopen behavior on sites which do not send (or obsfuscates) Connection: Close header.
Antoine Pitrou [Tue, 26 Jul 2011 23:22:41 +0000 (01:22 +0200)]
Actually port
ecfe9bf0117b to default
(I had the wrong impression that the problem didn't exist here)
Antoine Pitrou [Tue, 26 Jul 2011 23:17:12 +0000 (01:17 +0200)]
Null merge
Antoine Pitrou [Tue, 26 Jul 2011 23:16:18 +0000 (01:16 +0200)]
When testing for an hg repo, use a file that always exists, even with the "shared" extension
Antoine Pitrou [Tue, 26 Jul 2011 23:06:34 +0000 (01:06 +0200)]
Null merge
Antoine Pitrou [Tue, 26 Jul 2011 23:06:07 +0000 (01:06 +0200)]
Backport
0398f07d4827 (fix for weird buildbot failures)
Antoine Pitrou [Tue, 26 Jul 2011 21:55:33 +0000 (23:55 +0200)]
Try to fix weird buildbot failures
Ned Deily [Tue, 26 Jul 2011 20:56:49 +0000 (13:56 -0700)]
Issue #8746: Use tempfile module to get tempdir and randomize the
link file name.
Ned Deily [Tue, 26 Jul 2011 20:53:55 +0000 (13:53 -0700)]
Issue #8746: Use tempfile module to get tempdir and randomize the
link file name.
Éric Araujo [Tue, 26 Jul 2011 16:25:14 +0000 (18:25 +0200)]
Branch merge.
I moved the NEWS entry for the reindent fix to the right release section.
Éric Araujo [Tue, 26 Jul 2011 16:01:08 +0000 (18:01 +0200)]
Fix missing or wrong shebangs and missing executable bits for scripts (#10318)
Jason R. Coombs [Tue, 26 Jul 2011 15:38:04 +0000 (11:38 -0400)]
Issue #10639: reindent.py tool now accepts a --newline option to specify the newline to be used in the output of converted files.
Jason R. Coombs [Tue, 26 Jul 2011 15:57:08 +0000 (11:57 -0400)]
Merge with 3.2 Issue #10639: reindent.py should not convert newlines.
reindent.py now will use the newline detected in the original file and will report an error if mixed newlines are encountered.
Éric Araujo [Tue, 26 Jul 2011 15:36:19 +0000 (17:36 +0200)]
Fix string exception and a few style issues in mailerdaemon script
Éric Araujo [Tue, 26 Jul 2011 15:32:50 +0000 (17:32 +0200)]
Fix sorting or wording of some NEWS entries.
I would have put io and ctypes fixes into Extension Modules, but I
respected the choice of Antoine or Victor and left them in Library.
Éric Araujo [Tue, 26 Jul 2011 15:23:57 +0000 (17:23 +0200)]
Fix style in code added by
edba722f3b02
Jason R. Coombs [Tue, 26 Jul 2011 15:18:40 +0000 (11:18 -0400)]
Fixes #10639: reindent.py should not convert newlines
reindent.py now will use the newline detected in the original file and will report an error if mixed newlines are encountered.
Éric Araujo [Tue, 26 Jul 2011 14:54:24 +0000 (16:54 +0200)]
Make indentation comply with our style guide and the rest of the file
Éric Araujo [Tue, 26 Jul 2011 14:53:17 +0000 (16:53 +0200)]
Fix “anyways” (following R. David Murray in
4d5a546b6186 )
Éric Araujo [Tue, 26 Jul 2011 13:14:35 +0000 (15:14 +0200)]
Fix reST references
Éric Araujo [Tue, 26 Jul 2011 13:13:47 +0000 (15:13 +0200)]
Remove duplicates of cmp_to_key (#12542, reviewed by Raymond Hettinger)
Antoine Pitrou [Tue, 26 Jul 2011 12:45:22 +0000 (14:45 +0200)]
Add debug output for failing buildbot
Ezio Melotti [Tue, 26 Jul 2011 06:37:46 +0000 (09:37 +0300)]
#12547: Fix example in nntplib doc. Patch by July Tikhonov.
Vinay Sajip [Mon, 25 Jul 2011 18:58:13 +0000 (19:58 +0100)]
Fixes #12637: Merged fix from 3.2 and added test.
Vinay Sajip [Mon, 25 Jul 2011 18:53:28 +0000 (19:53 +0100)]
Fixes #12637: Last resort messages now correctly handled. Thanks to Xavier de Gaye for the patch."
Charles-François Natali [Mon, 25 Jul 2011 16:35:49 +0000 (18:35 +0200)]
Issue #11784: Improve multiprocessing.Process.join() documentation. Patch by
Patrick Sabin.
Ross Lagerwall [Mon, 25 Jul 2011 05:14:15 +0000 (07:14 +0200)]
Issue #12102: Merge with 3.2.
Ross Lagerwall [Mon, 25 Jul 2011 05:12:43 +0000 (07:12 +0200)]
Issue #12102: Document that buffered files must be flushed before being used
with mmap. Patch by Steffen Daode Nurpmeso.
Charles-François Natali [Sun, 24 Jul 2011 20:44:15 +0000 (22:44 +0200)]
Issue #12560: Build libpython.so on OpenBSD. Patch by Stefan Sperling.
Charles-François Natali [Sun, 24 Jul 2011 20:41:18 +0000 (22:41 +0200)]
Issue #12560: Build libpython.so on OpenBSD. Patch by Stefan Sperling.