]> granicus.if.org Git - python/log
python
13 years agoSilence compilation warnings on Windows
Amaury Forgeot d'Arc [Fri, 13 Jan 2012 21:12:37 +0000 (22:12 +0100)]
Silence compilation warnings on Windows

13 years agoFix compilation with C89 compilers (Windows...)
Amaury Forgeot d'Arc [Fri, 13 Jan 2012 20:08:49 +0000 (21:08 +0100)]
Fix compilation with C89 compilers (Windows...)

13 years agoFix a crash when the return value of a subgenerator is a temporary
Amaury Forgeot d'Arc [Fri, 13 Jan 2012 20:06:12 +0000 (21:06 +0100)]
Fix a crash when the return value of a subgenerator is a temporary
object (with a refcount of 1)

13 years agoFix compilation warning on Windows
Amaury Forgeot d'Arc [Sat, 17 Dec 2011 09:23:14 +0000 (10:23 +0100)]
Fix compilation warning on Windows

13 years agoNULL and no exception set from tp_iternext means StopIteration
Benjamin Peterson [Fri, 13 Jan 2012 19:54:31 +0000 (14:54 -0500)]
NULL and no exception set from tp_iternext means StopIteration

13 years agoadd test, which was missing from d64ac9ab4cd0
Benjamin Peterson [Fri, 13 Jan 2012 19:39:38 +0000 (14:39 -0500)]
add test, which was missing from d64ac9ab4cd0

13 years agoIssue #13764: remove outdated script Misc/build.sh
Antoine Pitrou [Fri, 13 Jan 2012 18:42:13 +0000 (19:42 +0100)]
Issue #13764: remove outdated script Misc/build.sh

13 years agoIssue #13764: remove outdated script Misc/build.sh
Antoine Pitrou [Fri, 13 Jan 2012 18:41:42 +0000 (19:41 +0100)]
Issue #13764: remove outdated script Misc/build.sh

13 years agoCloses #13761: add a "flush" keyword argument to print().
Georg Brandl [Fri, 13 Jan 2012 18:41:25 +0000 (19:41 +0100)]
Closes #13761: add a "flush" keyword argument to print().

13 years agoIssue #13645: pyc files now contain the size of the corresponding source
Antoine Pitrou [Fri, 13 Jan 2012 17:52:16 +0000 (18:52 +0100)]
Issue #13645: pyc files now contain the size of the corresponding source
code, to avoid timestamp collisions (especially on filesystems with a low
timestamp resolution) when checking for freshness of the bytecode.

13 years agomake Python-ast.c depend on Python-ast.h
Benjamin Peterson [Fri, 13 Jan 2012 13:45:55 +0000 (08:45 -0500)]
make Python-ast.c depend on Python-ast.h

13 years agoImplement PEP 380 - 'yield from' (closes #11682)
Nick Coghlan [Fri, 13 Jan 2012 11:43:40 +0000 (21:43 +1000)]
Implement PEP 380 - 'yield from' (closes #11682)

13 years agomove do_title to a better place
Benjamin Peterson [Fri, 13 Jan 2012 02:10:29 +0000 (21:10 -0500)]
move do_title to a better place

13 years agoIssue #13748: Raw bytes literals can now be written with the `rb` prefix as well...
Antoine Pitrou [Thu, 12 Jan 2012 21:46:19 +0000 (22:46 +0100)]
Issue #13748: Raw bytes literals can now be written with the `rb` prefix as well as `br`.

13 years agotest_strlit was never run
Antoine Pitrou [Thu, 12 Jan 2012 21:38:13 +0000 (22:38 +0100)]
test_strlit was never run

13 years agotest_strlit was never run
Antoine Pitrou [Thu, 12 Jan 2012 21:36:48 +0000 (22:36 +0100)]
test_strlit was never run

13 years agomake fix_decimal_and_space_to_ascii check if it modifies the string
Benjamin Peterson [Thu, 12 Jan 2012 20:40:18 +0000 (15:40 -0500)]
make fix_decimal_and_space_to_ascii check if it modifies the string

13 years agomerge heads
Benjamin Peterson [Thu, 12 Jan 2012 20:26:20 +0000 (15:26 -0500)]
merge heads

13 years agokill capwords implementation which has been disabled since the begining
Benjamin Peterson [Thu, 12 Jan 2012 20:25:41 +0000 (15:25 -0500)]
kill capwords implementation which has been disabled since the begining

13 years agoMerge #11633 At least 2 people prefer earlier revision.
Terry Jan Reedy [Thu, 12 Jan 2012 19:51:14 +0000 (14:51 -0500)]
Merge #11633 At least 2 people prefer earlier revision.

13 years ago#11633 At least 2 people prefer earlier revision.
Terry Jan Reedy [Thu, 12 Jan 2012 19:49:02 +0000 (14:49 -0500)]
#11633 At least 2 people prefer earlier revision.

13 years agoIssue #13724: improve documentation for socket.create_connection.
Antoine Pitrou [Thu, 12 Jan 2012 07:06:49 +0000 (08:06 +0100)]
Issue #13724: improve documentation for socket.create_connection.

13 years agoIssue #13724: improve documentation for socket.create_connection.
Antoine Pitrou [Thu, 12 Jan 2012 07:06:19 +0000 (08:06 +0100)]
Issue #13724: improve documentation for socket.create_connection.

13 years agomerge 3.2
Benjamin Peterson [Thu, 12 Jan 2012 02:00:48 +0000 (21:00 -0500)]
merge 3.2

13 years agoremove some usage of Py_UNICODE_TOUPPER/LOWER
Benjamin Peterson [Thu, 12 Jan 2012 02:00:42 +0000 (21:00 -0500)]
remove some usage of Py_UNICODE_TOUPPER/LOWER

13 years agofold into one if statement
Benjamin Peterson [Thu, 12 Jan 2012 02:00:16 +0000 (21:00 -0500)]
fold into one if statement

13 years agomerge heads
Benjamin Peterson [Wed, 11 Jan 2012 23:17:40 +0000 (18:17 -0500)]
merge heads

13 years agouse full unicode mappings for upper/lower/title case (#12736)
Benjamin Peterson [Wed, 11 Jan 2012 23:17:06 +0000 (18:17 -0500)]
use full unicode mappings for upper/lower/title case (#12736)

Also broaden the category of characters that count as lowercase/uppercase.

13 years agoMerge with 3.2
Terry Jan Reedy [Wed, 11 Jan 2012 19:56:22 +0000 (14:56 -0500)]
Merge with 3.2

13 years agoMinor correction. #11418
Terry Jan Reedy [Wed, 11 Jan 2012 19:54:34 +0000 (14:54 -0500)]
Minor correction. #11418

13 years agoMerge with 3.2
Terry Jan Reedy [Wed, 11 Jan 2012 19:14:14 +0000 (14:14 -0500)]
Merge with 3.2
#11633 Clarify print buffering (will change again if 13761 adds flush param).

13 years agoCloses #11633 Clarify print buffering.
Terry Jan Reedy [Wed, 11 Jan 2012 19:09:49 +0000 (14:09 -0500)]
Closes #11633 Clarify print buffering.

13 years agoMerge with 3.2
Terry Jan Reedy [Wed, 11 Jan 2012 08:32:43 +0000 (03:32 -0500)]
Merge with 3.2
#13754 String returned if less than *or equal to* x 3
*13753 'seq' now 'iterable'

13 years ago#13754 String returned if less than *or equal to* x 3
Terry Jan Reedy [Wed, 11 Jan 2012 08:29:42 +0000 (03:29 -0500)]
#13754 String returned if less than *or equal to* x 3
Close *13753 'seq' now 'iterable'

13 years agoRemove unused certificate from the test directory.
Antoine Pitrou [Tue, 10 Jan 2012 22:46:26 +0000 (23:46 +0100)]
Remove unused certificate from the test directory.

13 years agoRemove unused certificate from the test directory.
Antoine Pitrou [Tue, 10 Jan 2012 22:45:54 +0000 (23:45 +0100)]
Remove unused certificate from the test directory.

13 years agoFix _PyFaulthandler_Fini() so it can be called before _PyFaulthandler_Init()
Victor Stinner [Tue, 10 Jan 2012 21:44:11 +0000 (22:44 +0100)]
Fix _PyFaulthandler_Fini() so it can be called before _PyFaulthandler_Init()

13 years agoIssue #13757: Change os.fdlistdir() so that it duplicates the passed file
Charles-François Natali [Tue, 10 Jan 2012 19:25:09 +0000 (20:25 +0100)]
Issue #13757: Change os.fdlistdir() so that it duplicates the passed file
descriptor (instead of closing it).

13 years agoMerge from 3.2 - Issue9637 - Explain in getproxies_environment that <scheme>_proxy...
Senthil Kumaran [Tue, 10 Jan 2012 17:30:23 +0000 (01:30 +0800)]
Merge from 3.2 - Issue9637 - Explain in getproxies_environment that <scheme>_proxy environ variable case does not matter.

13 years agoIssue9637 - Explain in getproxies_environment that <scheme>_proxy environ variable...
Senthil Kumaran [Tue, 10 Jan 2012 17:29:08 +0000 (01:29 +0800)]
Issue9637 - Explain in getproxies_environment that <scheme>_proxy environ variable case does not matter.

13 years agoMerge with 3.2
Terry Jan Reedy [Mon, 9 Jan 2012 23:33:27 +0000 (18:33 -0500)]
Merge with 3.2

13 years ago#11906 Make test_argparse work interactively by removing extra space
Terry Jan Reedy [Mon, 9 Jan 2012 23:20:09 +0000 (18:20 -0500)]
#11906 Make test_argparse work interactively by removing extra space
in comparison string that argparse does not add when program name is blank.

13 years agoIssue #12760: Add a create mode to open(). Patch by David Townshend.
Charles-François Natali [Mon, 9 Jan 2012 21:40:02 +0000 (22:40 +0100)]
Issue #12760: Add a create mode to open(). Patch by David Townshend.

13 years agoMerge SSL doc fixes (issue #13747).
Antoine Pitrou [Mon, 9 Jan 2012 20:46:11 +0000 (21:46 +0100)]
Merge SSL doc fixes (issue #13747).

13 years agoIssue #13747: fix SSL compatibility table.
Antoine Pitrou [Mon, 9 Jan 2012 20:43:18 +0000 (21:43 +0100)]
Issue #13747: fix SSL compatibility table.

13 years agoIssue #13747: fix documentation error about the default SSL version.
Antoine Pitrou [Mon, 9 Jan 2012 20:35:11 +0000 (21:35 +0100)]
Issue #13747: fix documentation error about the default SSL version.

13 years agoFix nasty typo
Raymond Hettinger [Mon, 9 Jan 2012 20:02:24 +0000 (20:02 +0000)]
Fix nasty typo

13 years agoprovide a common method to check for RETR_DATA validity, first checking the expected...
Giampaolo Rodola' [Mon, 9 Jan 2012 16:10:10 +0000 (17:10 +0100)]
provide a common method to check for RETR_DATA validity, first checking the expected len and then the actual data content; this way we get a failure on len mismatch rather than content mismatch (which is very long and unreadable)

13 years agoMake the docstring style consistent.
Raymond Hettinger [Mon, 9 Jan 2012 06:17:39 +0000 (06:17 +0000)]
Make the docstring style consistent.

13 years agoImprove clarity with keyword argument for block. Move nowait methods together.
Raymond Hettinger [Mon, 9 Jan 2012 06:02:08 +0000 (06:02 +0000)]
Improve clarity with keyword argument for block.  Move nowait methods together.

13 years agoMinor code clean-ups and beautifications.
Raymond Hettinger [Mon, 9 Jan 2012 05:32:01 +0000 (05:32 +0000)]
Minor code clean-ups and beautifications.

13 years agoBacked out changeset 36f2e236c601: For some reason, rewinddir() doesn't work as
Charles-François Natali [Sun, 8 Jan 2012 19:30:47 +0000 (20:30 +0100)]
Backed out changeset 36f2e236c601: For some reason, rewinddir() doesn't work as
it should on OpenIndiana.

13 years agoIssue #13739: It's simpler and more direct to call rewinddir() at the
Charles-François Natali [Sun, 8 Jan 2012 18:07:18 +0000 (19:07 +0100)]
Issue #13739: It's simpler and more direct to call rewinddir() at the
beginning.

13 years agoIssue #13739: In os.listdir(), rewind the directory stream (so that listdir()
Charles-François Natali [Sun, 8 Jan 2012 17:34:06 +0000 (18:34 +0100)]
Issue #13739: In os.listdir(), rewind the directory stream (so that listdir()
can be called again on the same open file).

13 years agoIssue #13738: Simplify implementation of bytes.lower() and bytes.upper().
Antoine Pitrou [Sun, 8 Jan 2012 15:22:46 +0000 (16:22 +0100)]
Issue #13738: Simplify implementation of bytes.lower() and bytes.upper().

13 years agoMerge with 3.2 for #12364.
Ross Lagerwall [Sun, 8 Jan 2012 06:42:03 +0000 (08:42 +0200)]
Merge with 3.2 for #12364.

13 years agoIssue #12364: Fix a hang in concurrent.futures.ProcessPoolExecutor.
Ross Lagerwall [Sun, 8 Jan 2012 06:29:40 +0000 (08:29 +0200)]
Issue #12364: Fix a hang in concurrent.futures.ProcessPoolExecutor.

13 years agoSimplify the code using with-statements.
Raymond Hettinger [Sat, 7 Jan 2012 23:32:52 +0000 (15:32 -0800)]
Simplify the code using with-statements.

13 years agoCloses #13732: now use os.linesep instead of a literal newline.
Vinay Sajip [Sat, 7 Jan 2012 23:26:17 +0000 (23:26 +0000)]
Closes #13732: now use os.linesep instead of a literal newline.

13 years agomerge with 3.2
Sandro Tosi [Sat, 7 Jan 2012 17:34:24 +0000 (18:34 +0100)]
merge with 3.2

13 years agoPy_SetPythonHome() can be called before Py_Initialize(); thanks to Cody Smith from...
Sandro Tosi [Sat, 7 Jan 2012 17:34:07 +0000 (18:34 +0100)]
Py_SetPythonHome() can be called before Py_Initialize(); thanks to Cody Smith from docs@

13 years agoIssue #13502: threading: Fix a race condition in Event.wait() that made it
Charles-François Natali [Sat, 7 Jan 2012 17:26:39 +0000 (18:26 +0100)]
Issue #13502: threading: Fix a race condition in Event.wait() that made it
return False when the event was set and cleared right after.

13 years agoIssue #13502: threading: Fix a race condition in Event.wait() that made it
Charles-François Natali [Sat, 7 Jan 2012 17:24:56 +0000 (18:24 +0100)]
Issue #13502: threading: Fix a race condition in Event.wait() that made it
return False when the event was set and cleared right after.

13 years agomerge with 3.2
Sandro Tosi [Sat, 7 Jan 2012 16:57:24 +0000 (17:57 +0100)]
merge with 3.2

13 years agoclarify recv* are blocking operations; thanks to Chris Kogelnik from docs@
Sandro Tosi [Sat, 7 Jan 2012 16:56:58 +0000 (17:56 +0100)]
clarify recv* are blocking operations; thanks to Chris Kogelnik from docs@

13 years agoIssue #9993: When the source and destination are on different filesystems,
Antoine Pitrou [Fri, 6 Jan 2012 19:16:19 +0000 (20:16 +0100)]
Issue #9993: When the source and destination are on different filesystems,
and the source is a symlink, shutil.move() now recreates a symlink on the
destination instead of copying the file contents.
Patch by Jonathan Niehof and Hynek Schlawack.

13 years agoUpdate printout of SSL certificate examples for 3.2+.
Antoine Pitrou [Fri, 6 Jan 2012 19:09:29 +0000 (20:09 +0100)]
Update printout of SSL certificate examples for 3.2+.

13 years agoUpdate printout of SSL certificate examples for 3.2+.
Antoine Pitrou [Fri, 6 Jan 2012 19:06:15 +0000 (20:06 +0100)]
Update printout of SSL certificate examples for 3.2+.

13 years agoIssue #12042: merge with 3.2
Sandro Tosi [Thu, 5 Jan 2012 18:49:27 +0000 (19:49 +0100)]
Issue #12042: merge with 3.2

13 years agoIssue #12042: a queue is only used to retrive results; preliminary patch by Jordan...
Sandro Tosi [Thu, 5 Jan 2012 18:48:56 +0000 (19:48 +0100)]
Issue #12042: a queue is only used to retrive results; preliminary patch by Jordan Stadler

13 years agoIssue #11984: merge with 3.2
Sandro Tosi [Thu, 5 Jan 2012 18:06:56 +0000 (19:06 +0100)]
Issue #11984: merge with 3.2

13 years agoIssue #11984: remove reference to parser, it's not showing symbol usage anymore
Sandro Tosi [Thu, 5 Jan 2012 18:06:25 +0000 (19:06 +0100)]
Issue #11984: remove reference to parser, it's not showing symbol usage anymore

13 years agoMerge from 3.2: Issue #12926: Fix a bug in tarfile's link extraction.
Lars Gustäbel [Thu, 5 Jan 2012 17:53:00 +0000 (18:53 +0100)]
Merge from 3.2: Issue #12926: Fix a bug in tarfile's link extraction.

On platforms that do not support (symbolic) links, tarfile offers a
work-around and extracts a link in an archive as the regular file the link is
pointing to. On other platforms, this code was accidentally executed even
after the link had been successfully extracted which failed due to the already
existing link.

13 years agoIssue #12926: Fix a bug in tarfile's link extraction.
Lars Gustäbel [Thu, 5 Jan 2012 17:48:06 +0000 (18:48 +0100)]
Issue #12926: Fix a bug in tarfile's link extraction.

On platforms that do not support (symbolic) links, tarfile offers a
work-around and extracts a link in an archive as the regular file the link is
pointing to. On other platforms, this code was accidentally executed even
after the link had been successfully extracted which failed due to the already
existing link.

13 years agoCloses #13699: merged fix from 3.2.
Vinay Sajip [Thu, 5 Jan 2012 11:46:20 +0000 (11:46 +0000)]
Closes #13699: merged fix from 3.2.

13 years agoCloses #13699. Skipped two tests if Python is optimised.
Vinay Sajip [Thu, 5 Jan 2012 11:45:31 +0000 (11:45 +0000)]
Closes #13699. Skipped two tests if Python is optimised.

13 years agomerge with 3.2
Sandro Tosi [Wed, 4 Jan 2012 22:25:20 +0000 (23:25 +0100)]
merge with 3.2

13 years agoIssue #10772: add count and help argparse action; patch by Marc Sibson
Sandro Tosi [Wed, 4 Jan 2012 22:25:04 +0000 (23:25 +0100)]
Issue #10772: add count and help argparse action; patch by Marc Sibson

13 years agoIssue #13713: fix a regression in HTTP chunked reading after 806cfe39f729
Antoine Pitrou [Wed, 4 Jan 2012 17:57:22 +0000 (18:57 +0100)]
Issue #13713: fix a regression in HTTP chunked reading after 806cfe39f729
(originally issue #13464: Add a readinto() method to http.client.HTTPResponse)

13 years agoconvince regrtest.py we aren't modifying _CONFIG_VARS
Benjamin Peterson [Wed, 4 Jan 2012 16:12:14 +0000 (10:12 -0600)]
convince regrtest.py we aren't modifying _CONFIG_VARS

13 years agoCorrected typo in install docs
Jason R. Coombs [Wed, 4 Jan 2012 15:20:37 +0000 (10:20 -0500)]
Corrected typo in install docs

13 years agoCloses #13699. Skipped two tests if Python is optimised.
Vinay Sajip [Wed, 4 Jan 2012 12:07:30 +0000 (12:07 +0000)]
Closes #13699. Skipped two tests if Python is optimised.

13 years agoRefactored logging rotating handlers for improved flexibility.
Vinay Sajip [Wed, 4 Jan 2012 12:02:26 +0000 (12:02 +0000)]
Refactored logging rotating handlers for improved flexibility.

13 years agomerge from 3.2
Senthil Kumaran [Wed, 4 Jan 2012 06:47:30 +0000 (14:47 +0800)]
merge from 3.2

13 years agoIssue13696 - Fix 302 Redirection for Relative urls.
Senthil Kumaran [Wed, 4 Jan 2012 05:46:59 +0000 (13:46 +0800)]
Issue13696 - Fix 302 Redirection for Relative urls.

13 years agoFix PyUnicode_Fill() doc: return type is Py_ssize_t, not int
Victor Stinner [Wed, 4 Jan 2012 02:59:16 +0000 (03:59 +0100)]
Fix PyUnicode_Fill() doc: return type is Py_ssize_t, not int

13 years agoAdd a subsection explaning cipher selection.
Antoine Pitrou [Wed, 4 Jan 2012 01:54:12 +0000 (02:54 +0100)]
Add a subsection explaning cipher selection.

13 years agoAdd a subsection explaning cipher selection.
Antoine Pitrou [Wed, 4 Jan 2012 01:53:44 +0000 (02:53 +0100)]
Add a subsection explaning cipher selection.

13 years agoAdd a new PyUnicode_Fill() function
Victor Stinner [Tue, 3 Jan 2012 23:33:50 +0000 (00:33 +0100)]
Add a new PyUnicode_Fill() function

It is faster than the unicode_fill() function which was implemented in
formatter_unicode.c.

13 years agomerge 3.2
Benjamin Peterson [Tue, 3 Jan 2012 22:48:14 +0000 (16:48 -0600)]
merge 3.2

13 years agofix formatting
Benjamin Peterson [Tue, 3 Jan 2012 22:47:22 +0000 (16:47 -0600)]
fix formatting

13 years agomerge 3.2
Benjamin Peterson [Tue, 3 Jan 2012 22:30:47 +0000 (16:30 -0600)]
merge 3.2

13 years agoexception support is correct now (closes #13705)
Benjamin Peterson [Tue, 3 Jan 2012 22:30:37 +0000 (16:30 -0600)]
exception support is correct now (closes #13705)

13 years agomerge 3.2
Benjamin Peterson [Tue, 3 Jan 2012 22:26:34 +0000 (16:26 -0600)]
merge 3.2

13 years agomerge 3.1
Benjamin Peterson [Tue, 3 Jan 2012 22:24:39 +0000 (16:24 -0600)]
merge 3.1

13 years agofix this to not depend on dictionary order
Benjamin Peterson [Tue, 3 Jan 2012 22:23:11 +0000 (16:23 -0600)]
fix this to not depend on dictionary order

13 years agoMerge
Antoine Pitrou [Tue, 3 Jan 2012 21:50:16 +0000 (22:50 +0100)]
Merge

13 years agoMerge
Antoine Pitrou [Tue, 3 Jan 2012 21:49:56 +0000 (22:49 +0100)]
Merge

13 years agoIssue #13636: Weak ciphers are now disabled by default in the ssl module
Antoine Pitrou [Tue, 3 Jan 2012 21:49:08 +0000 (22:49 +0100)]
Issue #13636: Weak ciphers are now disabled by default in the ssl module
(except when SSLv2 is explicitly asked for).

13 years agomerge with 3.2
Sandro Tosi [Tue, 3 Jan 2012 21:47:28 +0000 (22:47 +0100)]
merge with 3.2