Commit graph

93051 commits

Author SHA1 Message Date
Serhiy Storchaka
5805ddeedb Issue #25380: Fixed protocol for the STACK_GLOBAL opcode in
pickletools.opcodes.
2015-10-13 21:12:32 +03:00
Victor Stinner
eaaaf136d2 Issue #25384: Use _PyBytesWriter API in binascii
This API avoids a final call to _PyBytes_Resize() for output smaller than 512
bytes.

Small optimization: disable overallocation in binascii.rledecode_hqx() for the
last write.
2015-10-13 10:51:47 +02:00
Zachary Ware
fcd8794ab5 Closes #25093: Merge with 3.5 2015-10-12 23:31:44 -05:00
Zachary Ware
fa10f61ee5 Issue #25093: Merge with 3.4 2015-10-12 23:30:15 -05:00
Zachary Ware
83fd0a81a4 Issue #25093: Fix test_tcl's testloadWithUNC for paths with spaces
Patch by Serhiy Storchaka.
2015-10-12 23:27:58 -05:00
Victor Stinner
f7d2471260 Merge 3.5 (sys.setrecursionlimit) 2015-10-13 00:16:07 +02:00
Victor Stinner
50856d5ae7 sys.setrecursionlimit() now raises RecursionError
Issue #25274: sys.setrecursionlimit() now raises a RecursionError if the new
recursion limit is too low depending at the current recursion depth. Modify
also the "lower-water mark" formula to make it monotonic. This mark is used to
decide when the overflowed flag of the thread state is reset.
2015-10-13 00:11:21 +02:00
Victor Stinner
397c42b8cc Merge 3.5 (test_eintr) 2015-10-12 23:37:31 +02:00
Victor Stinner
60f26691f5 Issue #25277: Use a longer sleep in test_eintr to reduce the risk of race
condition in test_eintr.
2015-10-12 23:37:02 +02:00
Victor Stinner
358af13526 Issue #25353: Optimize unicode escape and raw unicode escape encoders to use
the new _PyBytesWriter API.
2015-10-12 22:36:57 +02:00
Victor Stinner
d65e4f4eea Issue #24164: Fix test_pyclbr
Ignore pickle.partial symbol which comes from functools.partial.
2015-10-12 14:38:24 +02:00
Victor Stinner
e9aa5950bb Fix compilation error in _PyBytesWriter_WriteBytes() on Windows 2015-10-12 13:57:47 +02:00
Victor Stinner
6c2cdae9e6 Writer APIs: use empty string singletons
Modify _PyBytesWriter_Finish() and _PyUnicodeWriter_Finish() to return the
empty bytes/Unicode string if the string is empty.
2015-10-12 13:29:43 +02:00
Victor Stinner
c29e29bed1 Relax _PyBytesWriter API
Don't require _PyBytesWriter pointer to be a "char *". Same change for
_PyBytesWriter_WriteBytes() parameter.

For example, binascii uses "unsigned char*".
2015-10-12 13:12:54 +02:00
Benjamin Peterson
b031eaee3b merge 3.5 2015-10-11 23:03:47 -07:00
Benjamin Peterson
63e80e1798 merge 3.4 2015-10-11 23:03:41 -07:00
Benjamin Peterson
b395188088 actually link to the version attributes documentation 2015-10-11 23:03:22 -07:00
Raymond Hettinger
965362e92d Minor fixup. maxlen is already known. 2015-10-11 22:52:54 -07:00
Raymond Hettinger
d96db09b57 Refactor the deque trim logic to eliminate the two separate trim functions. 2015-10-11 22:34:48 -07:00
Terry Jan Reedy
9e6d7a524d Merge with 3.5 2015-10-11 22:08:02 -04:00
Terry Jan Reedy
bcbc50bbb2 Merge with 3.4 2015-10-11 22:07:48 -04:00
Terry Jan Reedy
d0cadba85f Issue #22726: Re-activate config dialog help button with some content about
the other buttons and the new IDLE Dark theme.
2015-10-11 22:07:31 -04:00
Steve Dower
66b037b087 Merge from 3.5 2015-10-11 18:07:07 -07:00
Steve Dower
bec29815d2 Keeps all-users launcher checkbox visible when the option cannot be changed. 2015-10-11 18:06:55 -07:00
Steve Dower
79e60dec1b Merge from 3.5 2015-10-11 18:05:27 -07:00
Steve Dower
8ffe4fdeb0 Only detects features from previous version when a bundle is found.
Otherwise, stray registry entries would cause issues.
Also fixes an accelerator collision and improves UAC icons when upgrading.
2015-10-11 18:05:11 -07:00
Steve Dower
3628d488c7 Issue #25143: Improves installer error messages for unsupported platforms. 2015-10-11 16:40:52 -07:00
Steve Dower
b96698112d Issue #25143: Improves installer error messages for unsupported platforms. 2015-10-11 16:40:41 -07:00
Steve Dower
5669387948 Issue #25163: Display correct directory in installer when using non-default settings. 2015-10-11 15:37:36 -07:00
Steve Dower
731f4a2c5f Issue #25163: Display correct directory in installer when using non-default settings. 2015-10-11 15:37:22 -07:00
Steve Dower
80b31402d5 Issue #25361: Disables use of SSE2 instructions in Windows 32-bit build 2015-10-11 15:16:21 -07:00
Steve Dower
5700ae877f Issue #25361: Disables use of SSE2 instructions in Windows 32-bit build 2015-10-11 15:15:52 -07:00
Raymond Hettinger
6b1e113f9f Hoist the deque->maxlen lookup out of the inner-loop. 2015-10-11 09:43:50 -07:00
Serhiy Storchaka
20d15b5100 Issue #24164: Fixed test_descr: __getnewargs_ex__ now is supported in protocols 2 and 3. 2015-10-11 17:52:09 +03:00
Serhiy Storchaka
99deb1989f No longer skip tests for classes with __getnewargs_ex__. The copy module
already supports reduce protocol 4 (issue #20289).
2015-10-11 17:48:51 +03:00
Serhiy Storchaka
9c8213fbc1 No longer skip tests for classes with __getnewargs_ex__. The copy module
already supports reduce protocol 4 (issue #20289).
2015-10-11 17:48:28 +03:00
Serhiy Storchaka
977e5912e2 Cleanup test_descr: remove C8 that is the same as C3. 2015-10-11 17:43:38 +03:00
Serhiy Storchaka
1ddbb8cf47 Cleanup test_descr: remove C8 that is the same as C3. 2015-10-11 17:43:12 +03:00
Serhiy Storchaka
1fdc80b55f Cleanup test_descr: remove C8 that is the same as C3. 2015-10-11 17:42:39 +03:00
Victor Stinner
e84c976568 Issue #25357: Add an optional newline paramer to binascii.b2a_base64().
base64.b64encode() uses it to avoid a memory copy.
2015-10-11 11:01:02 +02:00
Victor Stinner
5df7fddc0c Merge 3.5 (test_coroutines) 2015-10-11 10:53:50 +02:00
Victor Stinner
718c984e6e Close #25367: Fix test_coroutines()
Fix usage of support.import_module('asyncio'): store the result in an 'asyncio'
variable.
2015-10-11 10:53:15 +02:00
Victor Stinner
5d28223be7 Null merge 3.5 2015-10-11 10:40:27 +02:00
Victor Stinner
0c886f740b lose #25373: Fix regrtest --slow with interrupted test 2015-10-11 10:39:56 +02:00
Victor Stinner
3909e58994 Close #25373: Fix regrtest --slow with interrupted test
* Fix accumulate_result(): don't use time on interrupted and failed test
* Add unit test for interrupted test
* Add unit test on --slow with interrupted test, with and without
  multiprocessing
2015-10-11 10:37:25 +02:00
Victor Stinner
00a09c05ed Merge 3.5 (test_coroutines, issue #25367) 2015-10-11 10:10:49 +02:00
Victor Stinner
b45c0f7e48 Close #25367: Fix test_coroutines with no thread support
Skip test_asyncio_1() when the asyncio module cannot be imported because
CPython is compiled with no thread support.
2015-10-11 10:10:31 +02:00
Victor Stinner
14b4662e18 test_regrtest: catch stderr in test_nowindows()
Check also that the deprecation warning is emited.
2015-10-11 10:04:26 +02:00
Victor Stinner
4967146c8d Close #25369: Fix test_regrtest without thread support 2015-10-11 10:03:28 +02:00
Victor Stinner
bc5b80bac1 Close #24784: Fix compilation without thread support
Add "#ifdef WITH_THREAD" around cals to:

* PyGILState_Check()
* _PyImport_AcquireLock()
* _PyImport_ReleaseLock()
2015-10-11 09:54:42 +02:00