]> granicus.if.org Git - python/log
python
10 years agoIssue #23605: Fix os.walk(topdown=True), don't cache entry.is_symlink() because
Victor Stinner [Wed, 18 Mar 2015 10:29:47 +0000 (11:29 +0100)]
Issue #23605: Fix os.walk(topdown=True), don't cache entry.is_symlink() because
the caller can replace the directory with a different file kind.

The bottom-up way, os.walk(topdown=False), still uses entry.is_symlink(), and
so can be faster than Python 3.4.

10 years agoIssue #23694: Handle EINTR in _Py_open() and _Py_fopen_obj()
Victor Stinner [Wed, 18 Mar 2015 08:52:54 +0000 (09:52 +0100)]
Issue #23694: Handle EINTR in _Py_open() and _Py_fopen_obj()

Retry open()/fopen() if it fails with EINTR and the Python signal handler
doesn't raise an exception.

10 years agoIssue #2211: Updated the implementation of the http.cookies.Morsel class.
Serhiy Storchaka [Wed, 18 Mar 2015 08:59:57 +0000 (10:59 +0200)]
Issue #2211: Updated the implementation of the http.cookies.Morsel class.
Setting attributes key, value and coded_value directly now is deprecated.
update() and setdefault() now transform and check keys.  Comparing for
equality now takes into account attributes key, value and coded_value.
copy() now returns a Morsel, not a dict.  repr() now contains all attributes.
Optimized checking keys and quoting values.  Added new tests.
Original patch by Demian Brecht.

10 years agoIssue #23207: merged fix from 3.4.
Vinay Sajip [Wed, 18 Mar 2015 08:49:57 +0000 (08:49 +0000)]
Issue #23207: merged fix from 3.4.

10 years agoIssue #23207: Improved kwarg validation.
Vinay Sajip [Wed, 18 Mar 2015 08:47:58 +0000 (08:47 +0000)]
Issue #23207: Improved kwarg validation.

10 years agoIssue #23694: Enhance _Py_fopen(), it now raises an exception on error
Victor Stinner [Wed, 18 Mar 2015 00:39:23 +0000 (01:39 +0100)]
Issue #23694: Enhance _Py_fopen(), it now raises an exception on error

* If fopen() fails, OSError is raised with the original filename object.
* The GIL is now released while calling fopen()

10 years agoIssue #23694: Enhance _Py_open(), it now raises exceptions
Victor Stinner [Tue, 17 Mar 2015 23:22:14 +0000 (00:22 +0100)]
Issue #23694: Enhance _Py_open(), it now raises exceptions

* _Py_open() now raises exceptions on error. If open() fails, it raises an
  OSError with the filename.
* _Py_open() now releases the GIL while calling open()
* Add _Py_open_noraise() when _Py_open() cannot be used because the GIL is not
  held

10 years agoIssue #23644: Fix issues with C++ when compiling Python extensions
Victor Stinner [Tue, 17 Mar 2015 21:53:27 +0000 (22:53 +0100)]
Issue #23644: Fix issues with C++ when compiling Python extensions

Disable completly pyatomic.h on C++, because <stdatomic.h> is not compatible with C++.

<pyatomic.h> is only needed by the optimized PyThreadState_GET() macro in
pystate.h. Instead, declare PyThreadState_GET() as an alias to
PyThreadState_Get(), as done for limited API.

10 years agoFix patch attribution for issue 18983.
Robert Collins [Tue, 17 Mar 2015 20:59:33 +0000 (09:59 +1300)]
Fix patch attribution for issue 18983.

10 years agoIssue #18983: Allow selection of output units in timeit.
Robert Collins [Tue, 17 Mar 2015 20:54:50 +0000 (09:54 +1300)]
Issue #18983: Allow selection of output units in timeit.

This allows manual selection of a specific unit such as usecs rather than the
use of a heuristic. This is intended to aid machine processing of timeit
output.

Patch by Serhiy Storchaka.

10 years agoIssue #23685: Fix usage of PyMODINIT_FUNC in _json, _scproxy, nis, pyexpat
Victor Stinner [Tue, 17 Mar 2015 16:48:27 +0000 (17:48 +0100)]
Issue #23685: Fix usage of PyMODINIT_FUNC in _json, _scproxy, nis, pyexpat
_codecs_cn, _codecs_hk, _codecs_iso2022, _codecs_jp, _codecs_kr and _codecs_tw
modules.

pyexpat.c doesn't need to redeclare PyMODINIT_FUNC, it's already declared in
Include/pyport.h.

10 years agoIssue #22585: null merge
Ned Deily [Tue, 17 Mar 2015 11:32:30 +0000 (04:32 -0700)]
Issue #22585: null merge

10 years agoIssue #22585: make URandomFDTests test case actually run
Ned Deily [Tue, 17 Mar 2015 11:30:08 +0000 (04:30 -0700)]
Issue #22585: make URandomFDTests test case actually run

10 years agoRevert changeset d927047b1d8eb87738676980a24930d053ba2150
Victor Stinner [Tue, 17 Mar 2015 09:49:17 +0000 (10:49 +0100)]
Revert changeset d927047b1d8eb87738676980a24930d053ba2150

Sorry, it was a mistake, the patch is still under review: issue #23646.

10 years agoIssue #23682: Delete Python 2.2 mention from distutils documentation.
Berker Peksag [Tue, 17 Mar 2015 04:56:11 +0000 (06:56 +0200)]
Issue #23682: Delete Python 2.2 mention from distutils documentation.

Patch by Thomas Kluyver.

10 years agoIssue #23682: Delete Python 2.2 mention from distutils documentation.
Berker Peksag [Tue, 17 Mar 2015 04:55:48 +0000 (06:55 +0200)]
Issue #23682: Delete Python 2.2 mention from distutils documentation.

Patch by Thomas Kluyver.

10 years agomerge 3.4 (#23679)
Benjamin Peterson [Mon, 16 Mar 2015 17:45:27 +0000 (12:45 -0500)]
merge 3.4 (#23679)

10 years agoversionchanged for rc4 removal (closes #23679)
Benjamin Peterson [Mon, 16 Mar 2015 17:43:38 +0000 (12:43 -0500)]
versionchanged for rc4 removal (closes #23679)

10 years agoIssue #23680: Reduce risk of race condition in check_interrupted_write() of
Victor Stinner [Mon, 16 Mar 2015 17:03:06 +0000 (18:03 +0100)]
Issue #23680: Reduce risk of race condition in check_interrupted_write() of
test_io. Allocate the large data before scheduling an alarm in 1 second.

On very slow computer, the alarm rings sometimes during the memory allocation.

10 years agoIssue #23680: Reduce risk of race condition in check_interrupted_write_retry()
Victor Stinner [Mon, 16 Mar 2015 16:57:49 +0000 (17:57 +0100)]
Issue #23680: Reduce risk of race condition in check_interrupted_write_retry()
of test_io. Allocate the large data before scheduling an alarm in 1 second.

On very slow computer, the alarm rings sometimes during the memory allocation.

10 years agoIssue #23571: Restore removed assert(!PyErr_Occurred()); in
Victor Stinner [Mon, 16 Mar 2015 10:52:32 +0000 (11:52 +0100)]
Issue #23571: Restore removed assert(!PyErr_Occurred()); in
PyEval_CallObjectWithKeywords()

Sorry Serhiy, I missed your explanation because the review email was moved to
my Spam folder :-(

10 years agoUse non-zero and non-last positions in error handler tests.
Serhiy Storchaka [Mon, 16 Mar 2015 06:31:38 +0000 (08:31 +0200)]
Use non-zero and non-last positions in error handler tests.

10 years agoUse non-zero and non-last positions in error handler tests.
Serhiy Storchaka [Mon, 16 Mar 2015 06:29:47 +0000 (08:29 +0200)]
Use non-zero and non-last positions in error handler tests.

10 years agoIssue #23585: make patchcheck will ensure the interpreter is built.
Robert Collins [Mon, 16 Mar 2015 02:30:31 +0000 (15:30 +1300)]
Issue #23585: make patchcheck will ensure the interpreter is built.

10 years agoIssue #23631: Fix traceback.format_list when a traceback has been mutated.
Robert Collins [Mon, 16 Mar 2015 02:27:16 +0000 (15:27 +1300)]
Issue #23631: Fix traceback.format_list when a traceback has been mutated.

10 years agoIncreased coverage of standard codec error handlers.
Serhiy Storchaka [Sun, 15 Mar 2015 21:43:34 +0000 (23:43 +0200)]
Increased coverage of standard codec error handlers.

10 years agoIncreased coverage of standard codec error handlers.
Serhiy Storchaka [Sun, 15 Mar 2015 21:41:37 +0000 (23:41 +0200)]
Increased coverage of standard codec error handlers.

10 years agoIssue #23549: Clarify confusion in heapq doc - accessing the mininmal element
Eli Bendersky [Sun, 15 Mar 2015 03:17:38 +0000 (20:17 -0700)]
Issue #23549: Clarify confusion in heapq doc - accessing the mininmal element

Merge 3.4

The current documentation only mentions heap[0] as the smallest element in the
beginning, and not in any of the methods' docs. There's no method to access the
minimal element without popping it, and the documentation of nsmallest is
confusing because it may suggest that min() is the way to go for n==1.

10 years agoIssue #23549: Clarify confusion in heapq doc - accessing the mininmal element
Eli Bendersky [Sun, 15 Mar 2015 03:14:23 +0000 (20:14 -0700)]
Issue #23549: Clarify confusion in heapq doc - accessing the mininmal element

The current documentation only mentions heap[0] as the smallest element in the
beginning, and not in any of the methods' docs. There's no method to access the
minimal element without popping it, and the documentation of nsmallest is
confusing because it may suggest that min() is the way to go for n==1.

10 years agoIssue #23568: Add rdivmod support to MagicMock() objects.
Berker Peksag [Sat, 14 Mar 2015 23:57:38 +0000 (01:57 +0200)]
Issue #23568: Add rdivmod support to MagicMock() objects.

Patch by Håkan Lövdahl.

10 years agoIssue #23568: Add rdivmod support to MagicMock() objects.
Berker Peksag [Sat, 14 Mar 2015 23:51:56 +0000 (01:51 +0200)]
Issue #23568: Add rdivmod support to MagicMock() objects.

Patch by Håkan Lövdahl.

10 years agoIssue #2052: Add charset parameter to HtmlDiff.make_file().
Berker Peksag [Sat, 14 Mar 2015 23:18:47 +0000 (01:18 +0200)]
Issue #2052: Add charset parameter to HtmlDiff.make_file().

10 years agoFix minor docs markup errors.
Serhiy Storchaka [Sat, 14 Mar 2015 19:34:25 +0000 (21:34 +0200)]
Fix minor docs markup errors.

10 years agoFix minor docs markup errors.
Serhiy Storchaka [Sat, 14 Mar 2015 19:32:57 +0000 (21:32 +0200)]
Fix minor docs markup errors.

10 years agoIssue #23606: Temporarily suppress test for CRT name.
Steve Dower [Sat, 14 Mar 2015 18:48:44 +0000 (11:48 -0700)]
Issue #23606: Temporarily suppress test for CRT name.

10 years agoFixes incorrect use of GetLastError where errno should be used.
Steve Dower [Sat, 14 Mar 2015 18:39:18 +0000 (11:39 -0700)]
Fixes incorrect use of GetLastError where errno should be used.

10 years agoFixes incorrect use of GetLastError where errno should be used.
Steve Dower [Sat, 14 Mar 2015 18:38:27 +0000 (11:38 -0700)]
Fixes incorrect use of GetLastError where errno should be used.

10 years agomerge 3.4
Benjamin Peterson [Fri, 13 Mar 2015 21:21:29 +0000 (16:21 -0500)]
merge 3.4

10 years ago__getslice__ certainly won't appear in the output
Benjamin Peterson [Fri, 13 Mar 2015 21:21:23 +0000 (16:21 -0500)]
__getslice__ certainly won't appear in the output

10 years agoMerge 3.4
Brett Cannon [Fri, 13 Mar 2015 16:50:16 +0000 (12:50 -0400)]
Merge 3.4

10 years agoMake the case to only support Python 2.7 when supporting 2/3 simultaneously
Brett Cannon [Fri, 13 Mar 2015 16:49:44 +0000 (12:49 -0400)]
Make the case to only support Python 2.7 when supporting 2/3 simultaneously

10 years agoAdd some periods to the ends of a couple comments
Brett Cannon [Fri, 13 Mar 2015 15:13:20 +0000 (11:13 -0400)]
Add some periods to the ends of a couple comments

10 years agoStrip trailing whitespace
Brett Cannon [Fri, 13 Mar 2015 14:42:08 +0000 (10:42 -0400)]
Strip trailing whitespace

10 years agoIssue #23491: Implement PEP 441: Improving Python Zip Application Support
Brett Cannon [Fri, 13 Mar 2015 14:40:49 +0000 (10:40 -0400)]
Issue #23491: Implement PEP 441: Improving Python Zip Application Support

Thanks to Paul Moore for the PEP and implementation.

10 years agoIssue #23566: Skip "fd" tests of test_faulthandler on Windows
Victor Stinner [Fri, 13 Mar 2015 10:01:30 +0000 (11:01 +0100)]
Issue #23566: Skip "fd" tests of test_faulthandler on Windows

subprocess doesn't support pass_fds on Windows.

10 years agoIssue #23138: Fixed parsing cookies with absent keys or values in cookiejar.
Serhiy Storchaka [Fri, 13 Mar 2015 07:05:01 +0000 (09:05 +0200)]
Issue #23138: Fixed parsing cookies with absent keys or values in cookiejar.
Patch by Demian Brecht.

10 years agoIssue #23051: multiprocessing.Pool methods imap() and imap_unordered() now
Serhiy Storchaka [Fri, 13 Mar 2015 06:25:26 +0000 (08:25 +0200)]
Issue #23051: multiprocessing.Pool methods imap() and imap_unordered() now
handle exceptions raised by an iterator.  Patch by Alon Diamant and Davin
Potts.

10 years agouse the meth role for ZipFile.open
Benjamin Peterson [Fri, 13 Mar 2015 03:41:06 +0000 (22:41 -0500)]
use the meth role for ZipFile.open

10 years agoIssue #23081: Document that PySequence_List also accepts iterables.
Berker Peksag [Fri, 13 Mar 2015 00:55:45 +0000 (02:55 +0200)]
Issue #23081: Document that PySequence_List also accepts iterables.

Patch by Lars Buitinck.

10 years agoIssue #22154: Add an example to show context management protocol support of ZipFile...
Berker Peksag [Fri, 13 Mar 2015 00:29:54 +0000 (02:29 +0200)]
Issue #22154: Add an example to show context management protocol support of ZipFile.open().

Patch by Mike Short.

10 years agoIssue #23641: Cleaned out legacy dunder names from tests and docs.
Serhiy Storchaka [Thu, 12 Mar 2015 19:56:08 +0000 (21:56 +0200)]
Issue #23641: Cleaned out legacy dunder names from tests and docs.
Fixed 2 to 3 porting bug in pynche.ColorDB.

10 years agoIssue #20617: Remove unused import in test_ssl.
Berker Peksag [Thu, 12 Mar 2015 16:50:49 +0000 (18:50 +0200)]
Issue #20617: Remove unused import in test_ssl.

Patch by Mark Lawrence.

10 years agotest
Victor Stinner [Thu, 12 Mar 2015 15:19:01 +0000 (16:19 +0100)]
test

10 years agoIssue #23138: Fixed parsing cookies with absent keys or values in cookiejar.
Serhiy Storchaka [Fri, 13 Mar 2015 07:09:35 +0000 (09:09 +0200)]
Issue #23138: Fixed parsing cookies with absent keys or values in cookiejar.
Patch by Demian Brecht.

10 years agoIssue #23051: multiprocessing.Pool methods imap() and imap_unordered() now
Serhiy Storchaka [Fri, 13 Mar 2015 06:30:33 +0000 (08:30 +0200)]
Issue #23051: multiprocessing.Pool methods imap() and imap_unordered() now
handle exceptions raised by an iterator.  Patch by Alon Diamant and Davin
Potts.

10 years agomerge 3.4
Benjamin Peterson [Fri, 13 Mar 2015 03:41:14 +0000 (22:41 -0500)]
merge 3.4

10 years agoIssue #23081: Document that PySequence_List also accepts iterables.
Berker Peksag [Fri, 13 Mar 2015 00:56:12 +0000 (02:56 +0200)]
Issue #23081: Document that PySequence_List also accepts iterables.

Patch by Lars Buitinck.

10 years agoIssue #22154: Add an example to show context management protocol support of ZipFile...
Berker Peksag [Fri, 13 Mar 2015 00:30:17 +0000 (02:30 +0200)]
Issue #22154: Add an example to show context management protocol support of ZipFile.open().

Patch by Mike Short.

10 years agoIssue #23641: Cleaned out legacy dunder names from tests and docs.
Serhiy Storchaka [Thu, 12 Mar 2015 20:01:30 +0000 (22:01 +0200)]
Issue #23641: Cleaned out legacy dunder names from tests and docs.
Fixed 2 to 3 porting bug in pynche.ColorDB.
Added few tests for __truediv__, __floordiv__ and __matmul__.

10 years agoAdd versionadded directives for the matmul operator.
Berker Peksag [Thu, 12 Mar 2015 18:56:45 +0000 (20:56 +0200)]
Add versionadded directives for the matmul operator.

10 years agoIssue #23651: Fix typo in allow_abbrev docs.
Berker Peksag [Thu, 12 Mar 2015 18:47:41 +0000 (20:47 +0200)]
Issue #23651: Fix typo in allow_abbrev docs.

Noticed by Nathan West.

10 years agoIssue #23581: Add matmul support to MagicMock.
Berker Peksag [Thu, 12 Mar 2015 18:42:48 +0000 (20:42 +0200)]
Issue #23581: Add matmul support to MagicMock.

Patch by Håkan Lövdahl.

10 years agoIssue #20617: Remove unused import in test_ssl.
Berker Peksag [Thu, 12 Mar 2015 16:51:16 +0000 (18:51 +0200)]
Issue #20617: Remove unused import in test_ssl.

Patch by Mark Lawrence.

10 years agoIssue #23644, #22038: Move #include <stdatomic.c> inside the extern "C" { ... }
Victor Stinner [Thu, 12 Mar 2015 15:04:41 +0000 (16:04 +0100)]
Issue #23644, #22038: Move #include <stdatomic.c> inside the extern "C" { ... }
block in pyatomic.h

10 years agoIssue #23566: enable(), register(), dump_traceback() and dump_traceback_later()
Victor Stinner [Thu, 12 Mar 2015 14:32:03 +0000 (15:32 +0100)]
Issue #23566: enable(), register(), dump_traceback() and dump_traceback_later()
functions of faulthandler now accept file descriptors. Patch by Wei Wu.

10 years agoMerge 3.4 (test_os)
Victor Stinner [Thu, 12 Mar 2015 09:32:20 +0000 (10:32 +0100)]
Merge 3.4 (test_os)

10 years agoIssue #23605: Refactor os.walk() tests to also run them on os.fwalk()
Victor Stinner [Thu, 12 Mar 2015 09:28:24 +0000 (10:28 +0100)]
Issue #23605: Refactor os.walk() tests to also run them on os.fwalk()

10 years agoIssue #22928: Disabled HTTP header injections in http.client.
Serhiy Storchaka [Thu, 12 Mar 2015 09:15:15 +0000 (11:15 +0200)]
Issue #22928: Disabled HTTP header injections in http.client.
Original patch by Demian Brecht.

10 years agoIssue #22928: Disabled HTTP header injections in http.client.
Serhiy Storchaka [Thu, 12 Mar 2015 09:13:36 +0000 (11:13 +0200)]
Issue #22928: Disabled HTTP header injections in http.client.
Original patch by Demian Brecht.

10 years agoIssue #23605: os.walk() doesn't need to call entry.is_symlink() if followlinks
Victor Stinner [Thu, 12 Mar 2015 08:12:48 +0000 (09:12 +0100)]
Issue #23605: os.walk() doesn't need to call entry.is_symlink() if followlinks
is True

10 years agoIssue #23192: Fixed generator lambdas. Patch by Bruno Cauet.
Serhiy Storchaka [Wed, 11 Mar 2015 16:22:29 +0000 (18:22 +0200)]
Issue #23192: Fixed generator lambdas.  Patch by Bruno Cauet.

10 years agoIssue #23192: Fixed generator lambdas. Patch by Bruno Cauet.
Serhiy Storchaka [Wed, 11 Mar 2015 16:20:35 +0000 (18:20 +0200)]
Issue #23192: Fixed generator lambdas.  Patch by Bruno Cauet.

10 years agoClose issue23486: performance boost for enum member lookup
Ethan Furman [Wed, 11 Mar 2015 15:43:12 +0000 (08:43 -0700)]
Close issue23486: performance boost for enum member lookup

10 years agoIssue #23615: Modules bz2, tarfile and tokenize now can be reloaded with
Serhiy Storchaka [Wed, 11 Mar 2015 15:31:33 +0000 (17:31 +0200)]
Issue #23615: Modules bz2, tarfile and tokenize now can be reloaded with
imp.reload().  Patch by Thomas Kluyver.

10 years agoIssue #23615: Modules bz2, tarfile and tokenize now can be reloaded with
Serhiy Storchaka [Wed, 11 Mar 2015 15:18:03 +0000 (17:18 +0200)]
Issue #23615: Modules bz2, tarfile and tokenize now can be reloaded with
imp.reload().  Patch by Thomas Kluyver.

10 years agoClose issue23467: add %r compatibility to bytes and bytearray
Ethan Furman [Wed, 11 Mar 2015 15:17:00 +0000 (08:17 -0700)]
Close issue23467: add %r compatibility to bytes and bytearray

10 years agoRemoves unused format string insertion in launcher.c.
Steve Dower [Wed, 11 Mar 2015 02:40:37 +0000 (19:40 -0700)]
Removes unused format string insertion in launcher.c.

10 years agoRemoves unused format string insertion in launcher.c.
Steve Dower [Wed, 11 Mar 2015 02:38:25 +0000 (19:38 -0700)]
Removes unused format string insertion in launcher.c.

10 years agoIssue #23629: Fix the default __sizeof__ implementation for variable-sized objects.
Antoine Pitrou [Tue, 10 Mar 2015 21:35:24 +0000 (22:35 +0100)]
Issue #23629: Fix the default __sizeof__ implementation for variable-sized objects.

10 years agoIssue #23629: Fix the default __sizeof__ implementation for variable-sized objects.
Antoine Pitrou [Tue, 10 Mar 2015 21:32:00 +0000 (22:32 +0100)]
Issue #23629: Fix the default __sizeof__ implementation for variable-sized objects.

10 years agoIssue #22028: Ensure mimetypes will not open registry keys with embedded nulls
Steve Dower [Tue, 10 Mar 2015 20:20:21 +0000 (13:20 -0700)]
Issue #22028: Ensure mimetypes will not open registry keys with embedded nulls

10 years agoIssue #22028: Ensure mimetypes will not open registry keys with embedded nulls
Steve Dower [Tue, 10 Mar 2015 20:17:21 +0000 (13:17 -0700)]
Issue #22028: Ensure mimetypes will not open registry keys with embedded nulls

10 years agoAdds note about installed debug binaries.
Steve Dower [Tue, 10 Mar 2015 20:15:40 +0000 (13:15 -0700)]
Adds note about installed debug binaries.

10 years agoIssue #23606: Disable ctypes.util.find_library("c") on Windows so tests are skipped...
Steve Dower [Tue, 10 Mar 2015 16:56:38 +0000 (09:56 -0700)]
Issue #23606: Disable ctypes.util.find_library("c") on Windows so tests are skipped while we figure out how best to approach the CRT change

10 years agoMerge 3.4 (asyncio)
Victor Stinner [Tue, 10 Mar 2015 15:32:50 +0000 (16:32 +0100)]
Merge 3.4 (asyncio)

10 years agoasyncio: Fix repr(BaseSubprocessTransport) if it didn't start yet
Victor Stinner [Tue, 10 Mar 2015 15:32:29 +0000 (16:32 +0100)]
asyncio: Fix repr(BaseSubprocessTransport) if it didn't start yet

Replace "running" with "not started" and don't show the pid if the subprocess
didn't start yet.

10 years agoMerge 3.4 (asyncio doc)
Victor Stinner [Tue, 10 Mar 2015 15:29:31 +0000 (16:29 +0100)]
Merge 3.4 (asyncio doc)

10 years agoasyncio doc: changes on the Queue API missed Python 3.4.3 release
Victor Stinner [Tue, 10 Mar 2015 15:27:54 +0000 (16:27 +0100)]
asyncio doc: changes on the Queue API missed Python 3.4.3 release

10 years agoIssue #23432: Remove duplicate content from SystemExit docs.
Berker Peksag [Tue, 10 Mar 2015 12:47:41 +0000 (14:47 +0200)]
Issue #23432: Remove duplicate content from SystemExit docs.

Also, document SystemExit.code attribute explicitly.

10 years agoIssue #23432: Remove duplicate content from SystemExit docs.
Berker Peksag [Tue, 10 Mar 2015 12:47:15 +0000 (14:47 +0200)]
Issue #23432: Remove duplicate content from SystemExit docs.

Also, document SystemExit.code attribute explicitly.

10 years agoMerge 3.4 (os doc)
Victor Stinner [Tue, 10 Mar 2015 12:31:58 +0000 (13:31 +0100)]
Merge 3.4 (os doc)

10 years agoIssue #23605: os.walk() doc now mentions shutil.rmtree() in the last example
Victor Stinner [Tue, 10 Mar 2015 12:31:47 +0000 (13:31 +0100)]
Issue #23605: os.walk() doc now mentions shutil.rmtree() in the last example

10 years agoIssue #22524: Rephrase scandir addition in What's New in Python 3.5
Victor Stinner [Tue, 10 Mar 2015 12:29:41 +0000 (13:29 +0100)]
Issue #22524: Rephrase scandir addition in What's New in Python 3.5

Patch written by Ben Hoyt.

10 years agoIssue #23605: os.walk() now calls os.scandir() instead of os.listdir().
Victor Stinner [Tue, 10 Mar 2015 12:20:34 +0000 (13:20 +0100)]
Issue #23605: os.walk() now calls os.scandir() instead of os.listdir().
The usage of os.scandir() reduces the number of calls to os.stat().
Initial patch written by Ben Hoyt.

10 years agoIssue #23571: Oops, fix #ifdef assert()
Victor Stinner [Mon, 9 Mar 2015 14:55:37 +0000 (15:55 +0100)]
Issue #23571: Oops, fix #ifdef assert()

assert() are noop when NDEBUG is defined. We want the opposite.

10 years agoIssue #23619: Ensure C variable is initialized before using it.
Steve Dower [Mon, 9 Mar 2015 17:05:50 +0000 (10:05 -0700)]
Issue #23619: Ensure C variable is initialized before using it.
The garbage in _crtInstalledToken was causing the IsCrtInstalled() function to return TRUE without actually checking anything. We now initialize the variable first.

10 years agomerge 3.4
Benjamin Peterson [Mon, 9 Mar 2015 14:37:59 +0000 (10:37 -0400)]
merge 3.4

10 years agofix up import style
Benjamin Peterson [Mon, 9 Mar 2015 14:37:50 +0000 (10:37 -0400)]
fix up import style

10 years agoMerge.
Larry Hastings [Mon, 9 Mar 2015 09:40:13 +0000 (02:40 -0700)]
Merge.

10 years agoPost-release changes for 3.5.0a2.
Larry Hastings [Mon, 9 Mar 2015 09:39:47 +0000 (02:39 -0700)]
Post-release changes for 3.5.0a2.