]> granicus.if.org Git - python/log
python
12 years ago1) State the relative errors of the power functions for integer exponents.
Stefan Krah [Sat, 16 Jun 2012 17:45:35 +0000 (19:45 +0200)]
1) State the relative errors of the power functions for integer exponents.

2) _mpd_qpow_mpd(): Abort the loop for all specials, not only infinity.

3) _mpd_qpow_mpd(): Make the function more general and distinguish between
   zero clamping and folding down the exponent. The latter case is currently
   handled by setting context->clamp to 0 before calling the function.

4) _mpd_qpow_int(): Add one to the work precision in case of a negative
   exponent. This is to get the same relative error (0.1 * 10**-prec)
   for both positive and negative exponents. The previous relative
   error for negative exponents was (0.2 * 10**-prec).

   Both errors are _before_ the final rounding to the context precision.

12 years ago_copy_characters(): move debug code at the top to avoid noisy #ifdef
Victor Stinner [Sat, 16 Jun 2012 14:38:26 +0000 (16:38 +0200)]
_copy_characters(): move debug code at the top to avoid noisy #ifdef

And don't use assert() anymore if check_maxchar is set: return -1 on error
instead.

12 years agoMake the test more resilient to test-run order (closes #15075)
Eli Bendersky [Sat, 16 Jun 2012 03:47:44 +0000 (06:47 +0300)]
Make the test more resilient to test-run order (closes #15075)

12 years agoFix PyUnicode_GetSize(): Don't replace _PyUnicode_Ready() exception
Victor Stinner [Sat, 16 Jun 2012 02:53:46 +0000 (04:53 +0200)]
Fix PyUnicode_GetSize(): Don't replace _PyUnicode_Ready() exception

12 years agoFix a compiler warning in _copy_characters() and remove debug code
Victor Stinner [Sat, 16 Jun 2012 02:53:25 +0000 (04:53 +0200)]
Fix a compiler warning in _copy_characters() and remove debug code

12 years agoOops, fix my previous change on _copy_characters()
Victor Stinner [Sat, 16 Jun 2012 02:53:00 +0000 (04:53 +0200)]
Oops, fix my previous change on _copy_characters()

12 years agoget_sourcefile(): use PyUnicode_READ() to avoid the creation of a temporary
Victor Stinner [Sat, 16 Jun 2012 01:22:05 +0000 (03:22 +0200)]
get_sourcefile(): use PyUnicode_READ() to avoid the creation of a temporary
Py_UCS4 buffer

12 years agoFix unicode_adjust_maxchar(): catch PyUnicode_New() failure
Victor Stinner [Sat, 16 Jun 2012 01:17:34 +0000 (03:17 +0200)]
Fix unicode_adjust_maxchar(): catch PyUnicode_New() failure

12 years agoFix "%f" format of str%args if the result is not an ASCII or latin1 string
Victor Stinner [Sat, 16 Jun 2012 00:57:41 +0000 (02:57 +0200)]
Fix "%f" format of str%args if the result is not an ASCII or latin1 string

12 years agoRemove debug code
Victor Stinner [Sat, 16 Jun 2012 00:44:43 +0000 (02:44 +0200)]
Remove debug code

12 years agoOptimize _PyUnicode_FastCopyCharacters() when maxchar(from) > maxchar(to)
Victor Stinner [Sat, 16 Jun 2012 00:22:37 +0000 (02:22 +0200)]
Optimize _PyUnicode_FastCopyCharacters() when maxchar(from) > maxchar(to)

12 years agounicodeobject.c: Remove debug code
Victor Stinner [Fri, 15 Jun 2012 23:53:04 +0000 (01:53 +0200)]
unicodeobject.c: Remove debug code

12 years agoIssue #15006: Allow equality comparison between naive and aware time
Alexander Belopolsky [Sat, 16 Jun 2012 00:19:47 +0000 (20:19 -0400)]
Issue #15006: Allow equality comparison between naive and aware time
or datetime objects.

12 years agoIssue #14938: importlib.abc.SourceLoader.is_package() now takes the
Brett Cannon [Sat, 16 Jun 2012 00:00:53 +0000 (20:00 -0400)]
Issue #14938: importlib.abc.SourceLoader.is_package() now takes the
module name into consideration when determining whether a module is a
package or not. This prevents importing a module's __init__ module
directly and having it considered a package, which can lead to
duplicate sub-modules.

Thanks to Ronan Lamy for reporting the bug.

12 years agoIssue #13959: Add to imp.find_module() and load_module's docstrings
Brett Cannon [Fri, 15 Jun 2012 23:39:06 +0000 (19:39 -0400)]
Issue #13959: Add to imp.find_module() and load_module's docstrings
that they are deprecated (previous commit documented this fact in the
module docs).

12 years agoCloses issue #14982: Document that pkgutil's walk_packages() and
Brett Cannon [Fri, 15 Jun 2012 23:21:07 +0000 (19:21 -0400)]
Closes issue #14982: Document that pkgutil's walk_packages() and
iter_modules() requires iter_modules() be defined on an importer. The
importers in importlib do not define this non-standard method.

12 years agoMerge
Brett Cannon [Fri, 15 Jun 2012 23:04:29 +0000 (19:04 -0400)]
Merge

12 years agoRemoved redundant code
Alexander Belopolsky [Fri, 15 Jun 2012 22:15:25 +0000 (18:15 -0400)]
Removed redundant code

12 years agoFix _TestListener.ALLOWED_TYPES and add sanity check
Richard Oudkerk [Fri, 15 Jun 2012 20:53:34 +0000 (21:53 +0100)]
Fix _TestListener.ALLOWED_TYPES and add sanity check

12 years agoMention the UTF-16 encoding speedup in the whatsnew (issue #15026).
Antoine Pitrou [Fri, 15 Jun 2012 20:22:18 +0000 (22:22 +0200)]
Mention the UTF-16 encoding speedup in the whatsnew (issue #15026).

12 years agoIssue #15026: utf-16 encoding is now significantly faster (up to 10x).
Antoine Pitrou [Fri, 15 Jun 2012 20:15:23 +0000 (22:15 +0200)]
Issue #15026: utf-16 encoding is now significantly faster (up to 10x).
Patch by Serhiy Storchaka.

12 years agoIncrease timeout used when waiting for manager to shutdown cleanly
Richard Oudkerk [Fri, 15 Jun 2012 19:08:29 +0000 (20:08 +0100)]
Increase timeout used when waiting for manager to shutdown cleanly
before resorting to terminate()

12 years agoFix for 2d2f206d040e so that test_multiprocessing does not depend on ctypes
Richard Oudkerk [Fri, 15 Jun 2012 18:18:30 +0000 (19:18 +0100)]
Fix for 2d2f206d040e so that test_multiprocessing does not depend on ctypes

12 years ago#15036: Make a repeated changes and flushes work with single-file mailboxes
Petri Lehtinen [Fri, 15 Jun 2012 18:01:39 +0000 (21:01 +0300)]
#15036: Make a repeated changes and flushes work with single-file mailboxes

12 years ago#15036: Make a repeated changes and flushes work with single-file mailboxes
Petri Lehtinen [Fri, 15 Jun 2012 17:50:51 +0000 (20:50 +0300)]
#15036: Make a repeated changes and flushes work with single-file mailboxes

12 years agoIssue #14059: Implement multiprocessing.Barrier
Richard Oudkerk [Fri, 15 Jun 2012 17:26:07 +0000 (18:26 +0100)]
Issue #14059: Implement multiprocessing.Barrier

12 years agoIssue #14933: fix misleading doc about weakref support in extension types.
Antoine Pitrou [Fri, 15 Jun 2012 17:12:04 +0000 (19:12 +0200)]
Issue #14933: fix misleading doc about weakref support in extension types.

12 years agoIssue #14933: fix misleading doc about weakref support in extension types.
Antoine Pitrou [Fri, 15 Jun 2012 17:11:31 +0000 (19:11 +0200)]
Issue #14933: fix misleading doc about weakref support in extension types.

12 years agoFix typos in NEWS entry
Nick Coghlan [Fri, 15 Jun 2012 11:16:25 +0000 (21:16 +1000)]
Fix typos in NEWS entry

12 years agoIssue #15061: Don't oversell the capabilities of the new non-shortcircuiting comparis...
Nick Coghlan [Fri, 15 Jun 2012 11:14:08 +0000 (21:14 +1000)]
Issue #15061: Don't oversell the capabilities of the new non-shortcircuiting comparison function in hmac

12 years agoSkip XincludeTest entirely instead of just ignoring failures, because it may segfault...
Eli Bendersky [Fri, 15 Jun 2012 06:40:44 +0000 (09:40 +0300)]
Skip XincludeTest entirely instead of just ignoring failures, because it may segfault, depending on the order of running tests

12 years agoRemoved _SimpleElementPath and its flaky test. The test monkey-patches the module...
Eli Bendersky [Fri, 15 Jun 2012 06:03:19 +0000 (09:03 +0300)]
Removed _SimpleElementPath and its flaky test. The test monkey-patches the module, which causes other failures and fails itself depending on the order tests are run.

12 years agomark problematic test as expected failure - investigating
Eli Bendersky [Fri, 15 Jun 2012 05:37:08 +0000 (08:37 +0300)]
mark problematic test as expected failure - investigating

12 years agoFix windows compilation problems caused by previous commit.
Eli Bendersky [Fri, 15 Jun 2012 04:52:49 +0000 (07:52 +0300)]
Fix windows compilation problems caused by previous commit.

12 years agoReplace the iter/itertext methods of Element in _elementtree with true C implementati...
Eli Bendersky [Fri, 15 Jun 2012 04:42:50 +0000 (07:42 +0300)]
Replace the iter/itertext methods of Element in _elementtree with true C implementations, instead of the bootstrapped Python code. In addition to being cleaner (removing the last remains of the bootstrapping code in _elementtree), this gives a 10x performance boost for iter() on large documents.
Also reorganized the tests a bit to be more robust.

12 years agoUpdate .hgignore for VS9.0-generated files
Antoine Pitrou [Thu, 14 Jun 2012 19:54:24 +0000 (21:54 +0200)]
Update .hgignore for VS9.0-generated files

12 years agoIssue #15070: fix VS9.0 build regression
Antoine Pitrou [Thu, 14 Jun 2012 19:51:12 +0000 (21:51 +0200)]
Issue #15070: fix VS9.0 build regression

12 years agoIssue #13841: Make child processes exit using sys.exit() on Windows
Richard Oudkerk [Thu, 14 Jun 2012 14:30:10 +0000 (15:30 +0100)]
Issue #13841: Make child processes exit using sys.exit() on Windows

12 years agoIssue #14936: curses_panel was converted to PEP 3121 and PEP 384 API.
Martin v. Löwis [Thu, 14 Jun 2012 14:01:23 +0000 (16:01 +0200)]
Issue #14936: curses_panel was converted to PEP 3121 and PEP 384 API.
Patch by Robin Schreiber.

12 years agoIssue #14936: curses_panel was converted to PEP 3121 API.
Martin v. Löwis [Thu, 14 Jun 2012 14:00:24 +0000 (16:00 +0200)]
Issue #14936: curses_panel was converted to PEP 3121 API.
Patch by Robin Schreiber.

12 years agomerge 3.2
Martin v. Löwis [Thu, 14 Jun 2012 13:37:53 +0000 (15:37 +0200)]
merge 3.2

12 years agoIssue #14937: Fix typo. Patch by Roger Serwy.
Martin v. Löwis [Thu, 14 Jun 2012 13:37:21 +0000 (15:37 +0200)]
Issue #14937: Fix typo. Patch by Roger Serwy.

12 years agoIssue #1667546: On platforms supporting tm_zone and tm_gmtoff fields
Alexander Belopolsky [Thu, 14 Jun 2012 02:15:26 +0000 (22:15 -0400)]
Issue #1667546: On platforms supporting tm_zone and tm_gmtoff fields
in struct tm, time.struct_time objects returned by time.gmtime(),
time.localtime() and time.strptime() functions now have tm_zone and
tm_gmtoff attributes.  Original patch by Paul Boddie.

12 years agoIssue #15060: merge with 3.2
Sandro Tosi [Wed, 13 Jun 2012 22:37:25 +0000 (00:37 +0200)]
Issue #15060: merge with 3.2

12 years agoIssue #15060: better fix, thanks to review on #python-dev
Sandro Tosi [Wed, 13 Jun 2012 22:37:09 +0000 (00:37 +0200)]
Issue #15060: better fix, thanks to review on #python-dev

12 years agoIssue #15060: merge with 3.2
Sandro Tosi [Wed, 13 Jun 2012 21:59:21 +0000 (23:59 +0200)]
Issue #15060: merge with 3.2

12 years agoIssue #15060: fix typo in socket doc; Patch by anatoly techtonik
Sandro Tosi [Wed, 13 Jun 2012 21:58:54 +0000 (23:58 +0200)]
Issue #15060: fix typo in socket doc; Patch by anatoly techtonik

12 years agoFix test_time for adjusted/adjustable changes
Victor Stinner [Tue, 12 Jun 2012 21:04:11 +0000 (23:04 +0200)]
Fix test_time for adjusted/adjustable changes

12 years agoPEP 418: Rename adjusted attribute to adjustable in time.get_clock_info() result
Victor Stinner [Tue, 12 Jun 2012 20:46:37 +0000 (22:46 +0200)]
PEP 418: Rename adjusted attribute to adjustable in time.get_clock_info() result

Fix also its value on Windows and Linux according to its documentation:
"adjustable" indicates if the clock *can be* adjusted, not if it is or was
adjusted.

In most cases, it is not possible to indicate if a clock is or was adjusted.

12 years agotime.get_clock_info() uses a namespace instead of structseq
Victor Stinner [Tue, 12 Jun 2012 20:11:44 +0000 (22:11 +0200)]
time.get_clock_info() uses a namespace instead of structseq

12 years agoFixed a typo in time_localtime()
Alexander Belopolsky [Tue, 12 Jun 2012 20:14:17 +0000 (16:14 -0400)]
Fixed a typo in time_localtime()

12 years ago1) Fix signature of _mpd_qpow_uint(): contrary to the comment base is constant.
Stefan Krah [Tue, 12 Jun 2012 19:06:06 +0000 (21:06 +0200)]
1) Fix signature of _mpd_qpow_uint(): contrary to the comment base is constant.

2) Abort the loop for all specials, not only infinity.

3) Make the function more general and distinguish between zero clamping
   and folding down the exponent. The latter case is currently handled
   by setting context->clamp to 0 before calling the function.

12 years agoIssue #3518: Remove references to non-existent BaseManager.from_address()
Richard Oudkerk [Mon, 11 Jun 2012 16:56:08 +0000 (17:56 +0100)]
Issue #3518: Remove references to non-existent BaseManager.from_address()
method

12 years agoUpdate importlib.h by touching Lib/importlib/_bootstrap.py.
Brett Cannon [Mon, 11 Jun 2012 15:02:53 +0000 (11:02 -0400)]
Update importlib.h by touching Lib/importlib/_bootstrap.py.

12 years agoMake a test easier to read.
Brett Cannon [Mon, 11 Jun 2012 15:02:36 +0000 (11:02 -0400)]
Make a test easier to read.

12 years agoDummy merge
Richard Oudkerk [Mon, 11 Jun 2012 14:16:56 +0000 (15:16 +0100)]
Dummy merge

12 years agoIssue #10133: Make multiprocessing deallocate buffer if socket read fails.
Richard Oudkerk [Mon, 11 Jun 2012 14:12:12 +0000 (15:12 +0100)]
Issue #10133: Make multiprocessing deallocate buffer if socket read fails.

Patch by Hallvard B Furuseth.

12 years agoClose #13857: Added textwrap.indent() function (initial patch by Ezra
Nick Coghlan [Mon, 11 Jun 2012 13:07:51 +0000 (23:07 +1000)]
Close #13857: Added textwrap.indent() function (initial patch by Ezra
  Berch)

12 years agomerge
Raymond Hettinger [Mon, 11 Jun 2012 07:42:17 +0000 (00:42 -0700)]
merge

12 years agoFix indentation of method and attribute examples.
Raymond Hettinger [Mon, 11 Jun 2012 07:38:14 +0000 (00:38 -0700)]
Fix indentation of method and attribute examples.

12 years ago1) Replace long-winded abort() construct by assert().
Stefan Krah [Mon, 11 Jun 2012 06:57:17 +0000 (08:57 +0200)]
1) Replace long-winded abort() construct by assert().

2) Remove micro optimization (inline checking for NaN before calling
   mpd_qcheck_nans()) that probably has no benefit in this case.

12 years ago#15015: Fix accessing an non-existing attribute.
Brian Quinlan [Mon, 11 Jun 2012 02:59:07 +0000 (12:59 +1000)]
#15015: Fix accessing an non-existing attribute.

12 years agounittest.mock minor doc update
Michael Foord [Sun, 10 Jun 2012 19:38:54 +0000 (20:38 +0100)]
unittest.mock minor doc update

12 years agoAdding patch.stopall method to unittest.mock
Michael Foord [Sun, 10 Jun 2012 19:36:32 +0000 (20:36 +0100)]
Adding patch.stopall method to unittest.mock

12 years agoExpand examples for ChainMap(). Improve markup.
Raymond Hettinger [Sun, 10 Jun 2012 18:39:44 +0000 (11:39 -0700)]
Expand examples for ChainMap().  Improve markup.

12 years ago1) State restrictions for the transform length.
Stefan Krah [Sun, 10 Jun 2012 14:50:55 +0000 (16:50 +0200)]
1) State restrictions for the transform length.

2) Switch argument order to match the function signature of mpd_calloc()
   (cosmetic change, since the order is irrelevant).

12 years agoSmall cleanup and optimization
Raymond Hettinger [Sun, 10 Jun 2012 05:51:39 +0000 (22:51 -0700)]
Small cleanup and optimization

12 years agoNote that the _asdict() method is outdated
Raymond Hettinger [Sun, 10 Jun 2012 02:15:26 +0000 (19:15 -0700)]
Note that the _asdict() method is outdated

12 years agoMinor reformatting (wrap fat lines, etc.) and create an __main__ file
Raymond Hettinger [Sun, 10 Jun 2012 01:46:45 +0000 (18:46 -0700)]
Minor reformatting (wrap fat lines, etc.) and create an __main__ file

12 years agoFix exception when calling reset_mock on a mock created with autospec
Michael Foord [Sat, 9 Jun 2012 16:31:59 +0000 (17:31 +0100)]
Fix exception when calling reset_mock on a mock created with autospec

12 years agoAdd one extra comparison to the _mpd_shortmul() case to avoid repetitive code.
Stefan Krah [Sat, 9 Jun 2012 13:28:36 +0000 (15:28 +0200)]
Add one extra comparison to the _mpd_shortmul() case to avoid repetitive code.

12 years agoNow that Defects are Exception subclasses, call super.
R David Murray [Sat, 9 Jun 2012 02:45:46 +0000 (22:45 -0400)]
Now that Defects are Exception subclasses, call super.

The behavior of MessageDefect is legacy behavior.  The chances anyone is
actually using the undocumented 'line' attribute is low, but it costs
little to retain backward compatibility.  Although one of the costs is
having to restore normal exception behavior in HeaderDefect.  On the
other hand, I'll probably add some specialized behavior there later.

12 years agoEnumerate all cases in the overflow detection strategy in mpd_qlog10().
Stefan Krah [Fri, 8 Jun 2012 22:01:28 +0000 (00:01 +0200)]
Enumerate all cases in the overflow detection strategy in mpd_qlog10().

12 years agoRelax datetime.timestamp() test around DST change
Alexander Belopolsky [Fri, 8 Jun 2012 17:00:27 +0000 (13:00 -0400)]
Relax datetime.timestamp() test around DST change

12 years agoRelax datetime.timestamp() test around DST change
Alexander Belopolsky [Fri, 8 Jun 2012 16:58:31 +0000 (12:58 -0400)]
Relax datetime.timestamp() test around DST change

12 years agoMerge.
Stefan Krah [Fri, 8 Jun 2012 16:55:22 +0000 (18:55 +0200)]
Merge.

12 years ago1) List relative error for _mpd_qln10().
Stefan Krah [Fri, 8 Jun 2012 16:41:33 +0000 (18:41 +0200)]
1) List relative error for _mpd_qln10().

2) Add rigorous error analysis to _mpd_qlog10 (ACL2 proofs exist).

3) Use the relative error as a basis for the interval generation in the
   correction loop (same as in _mpd_qln()).

12 years agoIssue #2736: Added datetime.timestamp() method.
Alexander Belopolsky [Fri, 8 Jun 2012 16:33:09 +0000 (12:33 -0400)]
Issue #2736: Added datetime.timestamp() method.

12 years ago#14814: Remove redundant code from ipaddress.IPv6Network
Hynek Schlawack [Fri, 8 Jun 2012 13:21:21 +0000 (15:21 +0200)]
#14814: Remove redundant code from ipaddress.IPv6Network

The strict checks and netmask computing don't make sense if constructed with
a ALL_ONES mask based on addresses. Also fix a bug due to mis-indentation of
a return statement in the same code block.

12 years agoMerge from 3.2, #12510
Terry Jan Reedy [Fri, 8 Jun 2012 00:04:17 +0000 (20:04 -0400)]
Merge from 3.2, #12510

12 years agoIssue #12510: Revise and triple # of calltip tests, with an eye to unittest
Terry Jan Reedy [Thu, 7 Jun 2012 23:41:04 +0000 (19:41 -0400)]
Issue #12510: Revise and triple # of calltip tests, with an eye to unittest
use. Make the get_entity 'method' a module function as it did not use 'self'.
Delete buggy _find_constructor function that is not needed, at least in 3.x.
Revise get_argspec so all tests pass.  Add and fix NEWS entries.

12 years agoMerge fixes for #13854 and #12157.
Richard Oudkerk [Thu, 7 Jun 2012 19:38:11 +0000 (20:38 +0100)]
Merge fixes for #13854 and #12157.

12 years agoIssue #11823: disassembly now shows argument counts on calls with keyword args
Alexander Belopolsky [Thu, 7 Jun 2012 18:28:14 +0000 (14:28 -0400)]
Issue #11823: disassembly now shows argument counts on calls with keyword args

12 years ago1) The overflow detection in mpd_qln() has a surprising number of case splits.
Stefan Krah [Thu, 7 Jun 2012 15:48:47 +0000 (17:48 +0200)]
1) The overflow detection in mpd_qln() has a surprising number of case splits.
   List all of them in the comment.

2) Use the recently stated relative error of _mpd_qln() to generate the
   interval for the exact value of ln(x). See also the comment in mpd_qexp().

12 years agoMerge from 3.2
Nick Coghlan [Thu, 7 Jun 2012 12:42:29 +0000 (22:42 +1000)]
Merge from 3.2

12 years agoNudge readers towards a more accurate mental model for loop else clauses
Nick Coghlan [Thu, 7 Jun 2012 12:41:34 +0000 (22:41 +1000)]
Nudge readers towards a more accurate mental model for loop else clauses

12 years agoRearrange code to beat an optimizer bug affecting Release x64 on windows
Kristján Valur Jónsson [Wed, 6 Jun 2012 21:58:08 +0000 (21:58 +0000)]
Rearrange code to beat an optimizer bug affecting Release x64 on windows
with VS2010sp1

12 years agoIssue #13854: Properly handle non-integer, non-string arg to SystemExit
Richard Oudkerk [Wed, 6 Jun 2012 18:04:57 +0000 (19:04 +0100)]
Issue #13854: Properly handle non-integer, non-string arg to SystemExit

Previously multiprocessing only expected int or str.  It also wrongly
used an exit code of 1 when the argument was a string instead of zero.

12 years agoIssue #12157: pool.map() does not handle empty iterable correctly
Richard Oudkerk [Wed, 6 Jun 2012 18:04:57 +0000 (19:04 +0100)]
Issue #12157: pool.map() does not handle empty iterable correctly

Initial patch by mouad

12 years ago1) Add error analysis comments to mpd_qln10() and _mpd_qln().
Stefan Krah [Wed, 6 Jun 2012 13:57:18 +0000 (15:57 +0200)]
1) Add error analysis comments to mpd_qln10() and _mpd_qln().

2) Simplify the precision adjustment code for values in [0.900, 1.15].

12 years agoClose #6203: Document that Python 3 sets LC_CTYPE at startup to the user's preferred...
Victor Stinner [Tue, 5 Jun 2012 23:37:37 +0000 (01:37 +0200)]
Close #6203: Document that Python 3 sets LC_CTYPE at startup to the user's preferred locale encoding

12 years agoSignal condition variables with the mutex held. Destroy condition variables
Kristján Valur Jónsson [Tue, 5 Jun 2012 22:17:42 +0000 (22:17 +0000)]
Signal condition variables with the mutex held.  Destroy condition variables
before their mutexes.

12 years agoFixes issue #15000: support the odd x32 abi on posixsubprocess's system call.
Gregory P. Smith [Tue, 5 Jun 2012 20:30:24 +0000 (13:30 -0700)]
Fixes issue #15000: support the odd x32 abi on posixsubprocess's system call.

12 years agoFixes issue #15000: support the odd x32 abi on posixsubprocess's system call.
Gregory P. Smith [Tue, 5 Jun 2012 20:26:39 +0000 (13:26 -0700)]
Fixes issue #15000: support the odd x32 abi on posixsubprocess's system call.

12 years agoAdd test for multiprocessing.Conditon.wait() and changset 3baeb5e13dd2
Richard Oudkerk [Tue, 5 Jun 2012 12:15:29 +0000 (13:15 +0100)]
Add test for multiprocessing.Conditon.wait() and changset 3baeb5e13dd2

12 years agoClose #11022: TextIOWrapper doesn't call locale.setlocale() anymore
Victor Stinner [Tue, 5 Jun 2012 11:43:22 +0000 (13:43 +0200)]
Close #11022: TextIOWrapper doesn't call locale.setlocale() anymore

open() and io.TextIOWrapper are now calling locale.getpreferredencoding(False)
instead of locale.getpreferredencoding() in text mode if the encoding is not
specified. Don't change temporary the locale encoding using locale.setlocale(),
use the current locale encoding instead of the user preferred encoding.

Explain also in open() documentation that locale.getpreferredencoding(False) is
called if the encoding is not specified.

12 years ago#14814: ipaddress: refactor dup code, minor janitoring, bump coverage
Hynek Schlawack [Tue, 5 Jun 2012 09:55:58 +0000 (11:55 +0200)]
#14814: ipaddress: refactor dup code, minor janitoring, bump coverage

- remove duplicate netmask/hostmask code
- make two ifs more pythonic
- remove packed property for networks
- some minor pep8 stuff
- Test coverage is now at 97%, the rest are mostly unreachable safeguards.

12 years agoIssue #14711: os.stat_float_times() has been deprecated.
Victor Stinner [Mon, 4 Jun 2012 23:22:15 +0000 (01:22 +0200)]
Issue #14711: os.stat_float_times() has been deprecated.

12 years agoAdd a function lzma.open(), to match gzip.open() and bz2.open().
Nadeem Vawda [Mon, 4 Jun 2012 21:38:12 +0000 (23:38 +0200)]
Add a function lzma.open(), to match gzip.open() and bz2.open().

12 years agoAllow LZMAFile to accept modes with a "b" suffix.
Nadeem Vawda [Mon, 4 Jun 2012 21:36:24 +0000 (23:36 +0200)]
Allow LZMAFile to accept modes with a "b" suffix.