]> granicus.if.org Git - python/log
python
13 years agoIssue #12650: only run the tests on Unix.
Charles-François Natali [Thu, 18 Aug 2011 15:56:02 +0000 (17:56 +0200)]
Issue #12650: only run the tests on Unix.

13 years agoIssue #12650: Fix a race condition where a subprocess.Popen could leak
Charles-François Natali [Thu, 18 Aug 2011 15:18:28 +0000 (17:18 +0200)]
Issue #12650: Fix a race condition where a subprocess.Popen could leak
resources (FD/zombie) when killed at the wrong time.

13 years agogrammatical fixes; from Darren Yin on docs@
Sandro Tosi [Thu, 18 Aug 2011 13:36:15 +0000 (15:36 +0200)]
grammatical fixes; from Darren Yin on docs@

13 years agofix possible refleaks
Benjamin Peterson [Wed, 17 Aug 2011 03:26:48 +0000 (22:26 -0500)]
fix possible refleaks

13 years ago#12761: fix wording of zlib license section
Sandro Tosi [Tue, 16 Aug 2011 18:02:15 +0000 (20:02 +0200)]
#12761: fix wording of zlib license section

13 years agoNEWS entry.
Barry Warsaw [Mon, 15 Aug 2011 23:50:35 +0000 (19:50 -0400)]
NEWS entry.

13 years agoThe simplest possible fix for the regression in bug 12752 by encoding unicodes
Barry Warsaw [Mon, 15 Aug 2011 23:17:12 +0000 (19:17 -0400)]
The simplest possible fix for the regression in bug 12752 by encoding unicodes
to 8-bit strings.

13 years ago#12204: document that str.upper().isupper() might be False and add a note about cased...
Ezio Melotti [Mon, 15 Aug 2011 11:24:15 +0000 (14:24 +0300)]
#12204: document that str.upper().isupper() might be False and add a note about cased characters.

13 years ago#12266: move the tests in test_unicode.
Ezio Melotti [Mon, 15 Aug 2011 07:04:28 +0000 (10:04 +0300)]
#12266: move the tests in test_unicode.

13 years ago#12266: Fix str.capitalize() to correctly uppercase/lowercase titlecased and cased...
Ezio Melotti [Mon, 15 Aug 2011 06:22:24 +0000 (09:22 +0300)]
#12266: Fix str.capitalize() to correctly uppercase/lowercase titlecased and cased non-letter characters.

13 years ago#12725: fix working. Patch by Ben Hayden.
Ezio Melotti [Sun, 14 Aug 2011 05:27:36 +0000 (08:27 +0300)]
#12725: fix working. Patch by Ben Hayden.

13 years agolet PySequence_Check me a link; thanks to tomo cocoa from docs@
Sandro Tosi [Fri, 12 Aug 2011 22:39:29 +0000 (00:39 +0200)]
let PySequence_Check me a link; thanks to tomo cocoa from docs@

13 years agoit's 'rather than'; reported by James Bateman on docs@
Sandro Tosi [Fri, 12 Aug 2011 17:31:15 +0000 (19:31 +0200)]
it's 'rather than'; reported by James Bateman on docs@

13 years agoEnglish fixup, from Mike MacCana on docs@
Sandro Tosi [Fri, 12 Aug 2011 17:11:24 +0000 (19:11 +0200)]
English fixup, from Mike MacCana on docs@

13 years agoIssue #12718: Add documentation on using custom importers.
Vinay Sajip [Thu, 11 Aug 2011 12:39:52 +0000 (13:39 +0100)]
Issue #12718: Add documentation on using custom importers.

13 years agoRemove the un-exercised in-module test code.
Senthil Kumaran [Wed, 10 Aug 2011 13:57:22 +0000 (21:57 +0800)]
Remove the un-exercised in-module test code.

13 years agoFix closes Issue12722 - link heapq source in the text format in the documentation.
Senthil Kumaran [Wed, 10 Aug 2011 13:54:56 +0000 (21:54 +0800)]
Fix closes Issue12722  - link heapq source in the text format in the documentation.

13 years agoIssue 12717: Fix-up an earlier backport in ConfigParser.
Raymond Hettinger [Tue, 9 Aug 2011 19:07:15 +0000 (12:07 -0700)]
Issue 12717: Fix-up an earlier backport in ConfigParser.

13 years agoRepair markup.
Georg Brandl [Tue, 9 Aug 2011 17:47:04 +0000 (19:47 +0200)]
Repair markup.

13 years agoConfirm that the prime example is actually correct. We get so many complaints about...
Georg Brandl [Mon, 8 Aug 2011 19:45:13 +0000 (21:45 +0200)]
Confirm that the prime example is actually correct.  We get so many complaints about a "buggy example" on docs@python, let us hope this cuts them in half at least.

13 years ago#12709: add error_callback argument to map_async documentation
Sandro Tosi [Mon, 8 Aug 2011 14:37:44 +0000 (16:37 +0200)]
#12709: add error_callback argument to map_async documentation

13 years ago#10741: add documentation for PyGILState_GetThisThreadState()
Sandro Tosi [Sun, 7 Aug 2011 22:15:57 +0000 (00:15 +0200)]
#10741: add documentation for PyGILState_GetThisThreadState()

13 years ago#12677: correct turtle orientation in doc
Sandro Tosi [Sun, 7 Aug 2011 15:09:15 +0000 (17:09 +0200)]
#12677: correct turtle orientation in doc

13 years agowhitespace fix.
Senthil Kumaran [Sun, 7 Aug 2011 02:03:58 +0000 (10:03 +0800)]
whitespace fix.

13 years agoRemove the old dead test program within the module in 2.7.
Senthil Kumaran [Sun, 7 Aug 2011 02:02:49 +0000 (10:02 +0800)]
Remove the old dead test program within the module in 2.7.

13 years agoFix grammar
Eli Bendersky [Sat, 6 Aug 2011 06:29:12 +0000 (09:29 +0300)]
Fix grammar

13 years agoFix closes Issue12697 - Update the usage syntax of timeit module in the docs.
Senthil Kumaran [Sat, 6 Aug 2011 05:34:30 +0000 (13:34 +0800)]
Fix closes Issue12697 - Update the usage syntax of timeit module in the docs.

13 years agos/a/an - grammar?
Senthil Kumaran [Sat, 6 Aug 2011 04:56:08 +0000 (12:56 +0800)]
s/a/an - grammar?

13 years agoFix closes issue11047 - Correct the 2.7 whatsnew description for issue 7902.
Senthil Kumaran [Sat, 6 Aug 2011 04:52:56 +0000 (12:52 +0800)]
Fix closes issue11047 - Correct the 2.7 whatsnew description for issue 7902.

13 years agoFix closes issue12698 - make the no_proxy environment variable handling a bit lenient...
Senthil Kumaran [Sat, 6 Aug 2011 04:24:33 +0000 (12:24 +0800)]
Fix closes issue12698 - make the no_proxy environment variable handling a bit lenient (accomodate spaces in between the items)

13 years agodosmodule is, thankfully, no more
Benjamin Peterson [Thu, 4 Aug 2011 16:07:42 +0000 (11:07 -0500)]
dosmodule is, thankfully, no more

13 years agoadd svn+ssh testcase for urljoin.
Senthil Kumaran [Wed, 3 Aug 2011 14:06:05 +0000 (22:06 +0800)]
add svn+ssh testcase for urljoin.

13 years agoinclude svn+ssh as well.
Senthil Kumaran [Wed, 3 Aug 2011 10:40:18 +0000 (18:40 +0800)]
include svn+ssh as well.

13 years agoFix closes issue12683 - urljoin to work with relative join of svn scheme.
Senthil Kumaran [Wed, 3 Aug 2011 10:31:59 +0000 (18:31 +0800)]
Fix closes issue12683 - urljoin to work with relative join of svn scheme.

13 years agoFix closes issue12663 - Correcting the ArgumentParser.error description. Patch by...
Senthil Kumaran [Tue, 2 Aug 2011 23:43:52 +0000 (07:43 +0800)]
Fix closes issue12663 - Correcting the ArgumentParser.error description. Patch by Sandro Tosi.

13 years agoBranch merge
Éric Araujo [Tue, 2 Aug 2011 18:01:54 +0000 (20:01 +0200)]
Branch merge

13 years ago#12670: Fix struct code after forward declaration on ctypes doc
Sandro Tosi [Tue, 2 Aug 2011 14:16:11 +0000 (16:16 +0200)]
#12670: Fix struct code after forward declaration on ctypes doc

13 years agoFix closes Issue12183 - Explain the Symlink copy behavior in shutil.copytree. Patch...
Senthil Kumaran [Tue, 2 Aug 2011 10:50:44 +0000 (18:50 +0800)]
Fix closes Issue12183 - Explain the Symlink copy behavior in shutil.copytree. Patch by Petri Lehtinen.

13 years agoFix incorrect mtime comparison in distutils (#11933).
Éric Araujo [Tue, 2 Aug 2011 01:16:12 +0000 (03:16 +0200)]
Fix incorrect mtime comparison in distutils (#11933).

This is a regression introduced in 9211a5d7d0b4, when uses of ST_MTIME
constants were changed to uses of st_mtime attributes.  As diagnosed in
the bug report, this change is not merely stylistic: st_mtime is a
float but ST_MTIME’s resolution is rounded to the seconds, so there was
a mismatch between the values seen by file_util and dep_util which
caused an sdist to be unnecessarily created a second time on an ext4
filesystem.

This patch has been tested by John S. Gruber, who reported the bug.
As this is a simple code revert, I think it’s okay to commit without a
unit test.

13 years agoBackport 68b5f87566fb
Stefan Krah [Mon, 1 Aug 2011 23:17:48 +0000 (01:17 +0200)]
Backport 68b5f87566fb

13 years agoUse attribute access instead of index access for namedtuple.
Georg Brandl [Mon, 1 Aug 2011 20:58:53 +0000 (22:58 +0200)]
Use attribute access instead of index access for namedtuple.

13 years agoBranch merge
Éric Araujo [Mon, 1 Aug 2011 12:48:19 +0000 (14:48 +0200)]
Branch merge

13 years agoCloses #12667: Corrected documentation for SMTPHandler secure argument.
Vinay Sajip [Mon, 1 Aug 2011 10:28:02 +0000 (11:28 +0100)]
Closes #12667: Corrected documentation for SMTPHandler secure argument.

13 years agoFix typo reported by Sandro Tosi.
Ezio Melotti [Sun, 31 Jul 2011 19:48:45 +0000 (22:48 +0300)]
Fix typo reported by Sandro Tosi.

13 years agoStop trying to write into the stdlib during lib2to3 tests (#12331).
Éric Araujo [Sun, 31 Jul 2011 15:59:28 +0000 (17:59 +0200)]
Stop trying to write into the stdlib during lib2to3 tests (#12331).

This prevents tests from failing when run from a Python installed in a
read-only directory.

13 years agorunning tests enables us to discover that they actually work
Benjamin Peterson [Sun, 31 Jul 2011 04:39:39 +0000 (23:39 -0500)]
running tests enables us to discover that they actually work

13 years agomerge heads.
Senthil Kumaran [Sun, 31 Jul 2011 03:50:15 +0000 (11:50 +0800)]
merge heads.

13 years agousing test_support.transient_internet helper method in the urllib2net test.
Senthil Kumaran [Sun, 31 Jul 2011 03:48:54 +0000 (11:48 +0800)]
using test_support.transient_internet helper method in the urllib2net test.

13 years agomerge heads
Benjamin Peterson [Sun, 31 Jul 2011 03:08:18 +0000 (22:08 -0500)]
merge heads

13 years agobe precise
Benjamin Peterson [Sun, 31 Jul 2011 03:08:09 +0000 (22:08 -0500)]
be precise

13 years agoFix regression with distutils MANIFEST handing (#11104, #8688).
Éric Araujo [Sun, 31 Jul 2011 00:04:00 +0000 (02:04 +0200)]
Fix regression with distutils MANIFEST handing (#11104, #8688).

The changed behavior of sdist in 2.7 broke packaging for projects that
wanted to use a manually-maintained MANIFEST file (instead of having a
MANIFEST.in template and letting distutils generate the MANIFEST).

The fixes that were committed for #8688 (d29399100973 by Tarek and
f7639dcdffc3 by me) did not fix all issues exposed in the bug report,
and also added one problem: the MANIFEST file format gained comments,
but the read_manifest method was not updated to handle (i.e. ignore)
them.  This changeset should fix everything; the tests have been
expanded and I successfully tested with Mercurial, which suffered from
this regression.

I have grouped the versionchanged directives for these bugs in one place
and added micro version numbers to help users know the quirks of the
exact version they’re using.  I also removed a stanza in the docs that
was forgotten in Tarek’s first changeset.

Initial report, thorough diagnosis and patch by John Dennis, further
work on the patch by Stephen Thorne, and a few edits and additions by
me.

13 years agoLet “make patchcheck” work for out-of-dir builds (#9860)
Éric Araujo [Sat, 30 Jul 2011 19:34:04 +0000 (21:34 +0200)]
Let “make patchcheck” work for out-of-dir builds (#9860)

13 years ago#12531: Fix spaces.
Ezio Melotti [Sat, 30 Jul 2011 18:31:22 +0000 (21:31 +0300)]
#12531: Fix spaces.

13 years agonote Ellipsis syntax
Benjamin Peterson [Sat, 30 Jul 2011 14:59:12 +0000 (09:59 -0500)]
note Ellipsis syntax

13 years agoadd space
Benjamin Peterson [Sat, 30 Jul 2011 14:58:59 +0000 (09:58 -0500)]
add space

13 years agodocument NotImplemented
Benjamin Peterson [Sat, 30 Jul 2011 14:57:24 +0000 (09:57 -0500)]
document NotImplemented

13 years agoIssue #11699: fix documentation of OptionParser.get_option_group. Patch by Petri...
Eli Bendersky [Sat, 30 Jul 2011 08:12:45 +0000 (11:12 +0300)]
Issue #11699: fix documentation of OptionParser.get_option_group. Patch by Petri Lehtinen

13 years agoDocument that atexit execution order is undefined (#9788)
Éric Araujo [Fri, 29 Jul 2011 16:04:24 +0000 (18:04 +0200)]
Document that atexit execution order is undefined (#9788)

13 years agoAdd a link target for argparse.Namespace (#8982)
Éric Araujo [Fri, 29 Jul 2011 15:59:17 +0000 (17:59 +0200)]
Add a link target for argparse.Namespace (#8982)

13 years agoMake “pydoc somebuiltin.somemethod” work (#8887)
Éric Araujo [Fri, 29 Jul 2011 15:34:35 +0000 (17:34 +0200)]
Make “pydoc somebuiltin.somemethod” work (#8887)

13 years agoBackout duplicate changeset ed34ca4e639c
Éric Araujo [Fri, 29 Jul 2011 14:28:22 +0000 (16:28 +0200)]
Backout duplicate changeset ed34ca4e639c

13 years agoAdd missing reST target to one heading in the tutorial
Éric Araujo [Sat, 11 Jun 2011 08:34:19 +0000 (10:34 +0200)]
Add missing reST target to one heading in the tutorial

13 years agoBranch merge
Éric Araujo [Fri, 29 Jul 2011 12:23:13 +0000 (14:23 +0200)]
Branch merge

13 years agoIssue #12531: add index entries to documentation of * and ** in function calls
Eli Bendersky [Fri, 29 Jul 2011 11:45:08 +0000 (14:45 +0300)]
Issue #12531: add index entries to documentation of * and ** in function calls

13 years agoIssue 12514: Use try/finally to assure that timeit restores GC when done.
Raymond Hettinger [Fri, 29 Jul 2011 06:56:38 +0000 (23:56 -0700)]
Issue 12514: Use try/finally to assure that timeit restores GC when done.

13 years agoTurn raw URI into real link
Éric Araujo [Thu, 28 Jul 2011 20:50:18 +0000 (22:50 +0200)]
Turn raw URI into real link

13 years agoUpdate documentation for shutil.move (#12043) and fix a few typos.
Éric Araujo [Fri, 29 Jul 2011 10:10:53 +0000 (12:10 +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.

13 years agoStop ignoring Mercurial merge conflits files (#12255).
Éric Araujo [Fri, 29 Jul 2011 10:07:31 +0000 (12:07 +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.

13 years agoMake VCSes ignore the compiled shared library file (#12255)
Éric Araujo [Fri, 29 Jul 2011 10:07:04 +0000 (12:07 +0200)]
Make VCSes ignore the compiled shared library file (#12255)

13 years agoFix missing or shebangs and executable bits for scripts (#10318)
Éric Araujo [Fri, 29 Jul 2011 10:06:13 +0000 (12:06 +0200)]
Fix missing or shebangs and executable bits for scripts (#10318)

13 years agoFix closes Issue11439 - Handle the SVN Keywords in 2.7 by replacing them with a high...
Senthil Kumaran [Thu, 28 Jul 2011 14:30:27 +0000 (22:30 +0800)]
Fix closes Issue11439 - Handle the SVN Keywords in 2.7 by replacing them with a high number so that code relying on them does not break.

13 years agoFixes #10639: reindent.py should not convert newlines
Jason R. Coombs [Wed, 27 Jul 2011 18:05:37 +0000 (14:05 -0400)]
Fixes #10639: reindent.py should not convert newlines
Backport of changeset 070dc6e359fb, reindent.py now will use the newline detected in the original file and will report an error if mixed newlines are encountered.

13 years ago- Issue #12603: Fix pydoc.synopsis() on files with non-negative st_mtime.
Charles-François Natali [Wed, 27 Jul 2011 17:36:40 +0000 (19:36 +0200)]
- Issue #12603: Fix pydoc.synopsis() on files with non-negative st_mtime.

13 years agoIssue #12607: In subprocess, fix issue where if stdin, stdout or stderr is
Ross Lagerwall [Wed, 27 Jul 2011 16:54:53 +0000 (18:54 +0200)]
Issue #12607: In subprocess, fix issue where if stdin, stdout or stderr is
given as a low fd, it gets overwritten.

13 years agomerge from 3.2 - Fix closes Issue12621 - Fix docstrings of find and rfind methods...
Senthil Kumaran [Wed, 27 Jul 2011 15:36:51 +0000 (23:36 +0800)]
merge from 3.2 - Fix closes Issue12621 - Fix docstrings of find and rfind methods of bytes/bytearry/unicodeobject.

13 years ago#12642: fix args names in open() doc.
Ezio Melotti [Wed, 27 Jul 2011 05:48:52 +0000 (08:48 +0300)]
#12642: fix args names in open() doc.

13 years agomerge from 3.2 - fix urlopen behavior on sites which do not send (or obsfuscates...
Senthil Kumaran [Wed, 27 Jul 2011 01:37:17 +0000 (09:37 +0800)]
merge from 3.2 - fix urlopen behavior on sites which do not send (or obsfuscates) Connection: Close header.

13 years agoIssue #12590: IDLE editor window now always displays the first line
Ned Deily [Wed, 27 Jul 2011 01:16:08 +0000 (18:16 -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.

13 years agoIssue #8746: Use tempfile module to get tempdir and randomize the
Ned Deily [Tue, 26 Jul 2011 20:52:14 +0000 (13:52 -0700)]
Issue #8746: Use tempfile module to get tempdir and randomize the
link file name.

13 years agoMake indentation comply with our style guide and the rest of the file
É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

13 years agoFix “anyways” (following R. David Murray in 5c7520e02d5a)
Éric Araujo [Fri, 29 Jul 2011 09:57:50 +0000 (11:57 +0200)]
Fix “anyways” (following R. David Murray in 5c7520e02d5a)

13 years agoAdd links from builtins module docs to built-in functions and constants docs
Éric Araujo [Fri, 29 Jul 2011 09:53:57 +0000 (11:53 +0200)]
Add links from builtins module docs to built-in functions and constants docs

13 years agoFix typo in 97a75fccd7c8
Éric Araujo [Fri, 29 Jul 2011 09:43:47 +0000 (11:43 +0200)]
Fix typo in 97a75fccd7c8

13 years agoIssue #12102: Document that buffered files must be flushed before being used
Ross Lagerwall [Mon, 25 Jul 2011 05:23:58 +0000 (07:23 +0200)]
Issue #12102: Document that buffered files must be flushed before being used
with mmap. Patch by Steffen Daode Nurpmeso.

13 years agoIssue #12560: Build libpython.so on OpenBSD. Patch by Stefan Sperling.
Charles-François Natali [Sun, 24 Jul 2011 20:33:35 +0000 (22:33 +0200)]
Issue #12560: Build libpython.so on OpenBSD. Patch by Stefan Sperling.

13 years agoIssue #1813: Fix codec lookup and setting/getting locales under Turkish locales.
Antoine Pitrou [Sun, 24 Jul 2011 00:51:01 +0000 (02:51 +0200)]
Issue #1813: Fix codec lookup and setting/getting locales under Turkish locales.

13 years agoFix typo in dbf1e1a27427 that was causing some buildbots to fail.
Nadeem Vawda [Sat, 23 Jul 2011 15:04:42 +0000 (17:04 +0200)]
Fix typo in dbf1e1a27427 that was causing some buildbots to fail.

13 years agoFix typo in NEWS entry for dbf1e1a27427.
Nadeem Vawda [Sat, 23 Jul 2011 14:13:01 +0000 (16:13 +0200)]
Fix typo in NEWS entry for dbf1e1a27427.

13 years agoIssue #10883: Fix socket leaks in urllib.request.
Nadeem Vawda [Sat, 23 Jul 2011 13:51:16 +0000 (15:51 +0200)]
Issue #10883: Fix socket leaks in urllib.request.

* ftpwrapper now uses reference counting to ensure that the underlying socket
  is closed when the ftpwrapper object is no longer in use
* ftplib.FTP.ntransfercmd() now closes the socket if an error occurs

Initial patch by Victor Stinner.

13 years agomerge from 3.2 - Fix closes issue12581 - Increase the urllib.parse test coverage...
Senthil Kumaran [Sat, 23 Jul 2011 10:41:43 +0000 (18:41 +0800)]
merge from 3.2 - Fix closes issue12581 - Increase the urllib.parse test coverage (cases applicable to 2.7). Patch by Petter Haggholm.

13 years agoFix function name: open -> urlopen.
Georg Brandl [Sat, 23 Jul 2011 06:06:33 +0000 (08:06 +0200)]
Fix function name: open -> urlopen.

13 years agomerge heads
Benjamin Peterson [Fri, 22 Jul 2011 22:21:56 +0000 (17:21 -0500)]
merge heads

13 years agoallow None identifiers
Benjamin Peterson [Fri, 22 Jul 2011 22:20:58 +0000 (17:20 -0500)]
allow None identifiers

13 years agoIssue #12592: Make Python build on OpenBSD 5 (and future major releases).
Charles-François Natali [Fri, 22 Jul 2011 21:43:42 +0000 (23:43 +0200)]
Issue #12592: Make Python build on OpenBSD 5 (and future major releases).

13 years agonews note
Benjamin Peterson [Fri, 22 Jul 2011 15:41:44 +0000 (10:41 -0500)]
news note

13 years agoverify the types of AST strings and identifiers (closes #12609 and #12610)
Benjamin Peterson [Fri, 22 Jul 2011 15:39:50 +0000 (10:39 -0500)]
verify the types of AST strings and identifiers (closes #12609 and #12610)

13 years agohardcode the old svn __version__
Benjamin Peterson [Fri, 22 Jul 2011 15:39:12 +0000 (10:39 -0500)]
hardcode the old svn __version__

13 years agoIssue #12434: make StringIO.write error message consistent with Python 2.7 nomenclature
Eli Bendersky [Fri, 22 Jul 2011 11:39:55 +0000 (14:39 +0300)]
Issue #12434: make StringIO.write error message consistent with Python 2.7 nomenclature

13 years agoIssue #12372: POSIX semaphores are broken on AIX: don't use them.
Charles-François Natali [Thu, 21 Jul 2011 17:41:04 +0000 (19:41 +0200)]
Issue #12372: POSIX semaphores are broken on AIX: don't use them.

13 years agoFix markup.
Ezio Melotti [Thu, 21 Jul 2011 08:38:13 +0000 (11:38 +0300)]
Fix markup.