summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Issue #24467: Fixed possible buffer over-read in bytearray. The bytearraySerhiy Storchaka2015-06-291-1/+18
|\ | | | | | | | | object now always allocates place for trailing null byte and it's buffer now is always null-terminated.
| * Issue #24467: Fixed possible buffer over-read in bytearray. The bytearraySerhiy Storchaka2015-06-291-1/+18
| | | | | | | | | | object now always allocates place for trailing null byte and it's buffer now is always null-terminated.
* | Issue #20387: Merge test and patch from 3.4.4Jason R. Coombs2015-06-282-1/+37
|\ \ | |/
| * Issue #20387: MergeJason R. Coombs2015-06-282-1/+37
| |\
| | * Issue #20387: Merge patch and testJason R. Coombs2015-06-282-1/+37
| | |\
| | | * Issue #20387: Restore retention of indentation during untokenize.Dingyuan Wang2015-06-221-0/+17
| | | |
| | | * Issue #20387: Correct test to properly capture expectation.Jason R. Coombs2015-06-261-2/+2
| | | |
| | | * Issue #20387: Add test capturing failure to roundtrip indented code in ↵Jason R. Coombs2015-06-201-0/+17
| | | | | | | | | | | | | | | | tokenize module.
| | | * Remove unused import and remove doctest-only import into doctests.Jason R. Coombs2015-06-201-1/+3
| | | |
* | | | Issue #24456: Fixed possible buffer over-read in adpcm2lin() and lin2adpcm()Serhiy Storchaka2015-06-281-0/+10
|\ \ \ \ | |/ / / | | | | | | | | functions of the audioop module.
| * | | Issue #24456: Fixed possible buffer over-read in adpcm2lin() and lin2adpcm()Serhiy Storchaka2015-06-281-0/+10
| |/ / | | | | | | | | | functions of the audioop module.
* | | Issue #24336: The contextmanager decorator now works with functions withSerhiy Storchaka2015-06-283-6/+14
|\ \ \ | |/ / | | | | | | keyword arguments called "func" and "self". Patch by Martin Panter.
| * | Issue #24336: The contextmanager decorator now works with functions withSerhiy Storchaka2015-06-283-6/+14
| | | | | | | | | | | | keyword arguments called "func" and "self". Patch by Martin Panter.
* | | upgrade to Unicode 8.0.0Benjamin Peterson2015-06-271-2/+2
| | |
* | | Issue #23684: Clarify the return value of the scheme attribute of ↵Berker Peksag2015-06-251-0/+41
|\ \ \ | |/ / | | | | | | | | | | | | ParseResult and SplitResult objects. Patch by Martin Panter.
| * | Issue #23684: Clarify the return value of the scheme attribute of ↵Berker Peksag2015-06-251-0/+41
| | | | | | | | | | | | | | | | | | ParseResult and SplitResult objects. Patch by Martin Panter.
* | | Issue #24400, #24325: More tests for types._GeneratorWrapperYury Selivanov2015-06-242-13/+31
| | | | | | | | | | | | Also, make 'wrapped' and 'isgen' private.
* | | Issue #24325, #24400: Add more unittests for types.coroutine; tweak wrapper ↵Yury Selivanov2015-06-243-62/+228
| | | | | | | | | | | | implementation.
* | | Issue #24495, #24400: Test asyncio.Task.repr in debug modeYury Selivanov2015-06-241-0/+7
| | |
* | | Fix asyncio unittests in debug modeYury Selivanov2015-06-242-1/+3
|\ \ \ | |/ /
| * | Fix asyncio unittests in debug modeYury Selivanov2015-06-241-0/+2
| | |
* | | Issue #24400: Fix CoroWrapper for 'async def' coroutinesYury Selivanov2015-06-243-12/+66
|\ \ \ | |/ /
| * | Issue #24400: Fix CoroWrapper for 'async def' coroutinesYury Selivanov2015-06-242-11/+42
| | |
| * | asyncio: Merge changes from issue #24400.Yury Selivanov2015-06-241-31/+17
| | |
* | | Closes #24244: Removes invalid test from test_timeSteve Dower2015-06-241-7/+0
| | |
* | | Issue #24489: ensure a previously set C errno doesn't disturb cmath.polar().Antoine Pitrou2015-06-231-10/+41
|\ \ \ | |/ /
| * | Issue #24489: ensure a previously set C errno doesn't disturb cmath.polar().Antoine Pitrou2015-06-231-10/+41
| | |
* | | Issue #24400: Introduce a distinct type for 'async def' coroutines.Yury Selivanov2015-06-229-105/+394
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary of changes: 1. Coroutines now have a distinct, separate from generators type at the C level: PyGen_Type, and a new typedef PyCoroObject. PyCoroObject shares the initial segment of struct layout with PyGenObject, making it possible to reuse existing generators machinery. The new type is exposed as 'types.CoroutineType'. As a consequence of having a new type, CO_GENERATOR flag is no longer applied to coroutines. 2. Having a separate type for coroutines made it possible to add an __await__ method to the type. Although it is not used by the interpreter (see details on that below), it makes coroutines naturally (without using __instancecheck__) conform to collections.abc.Coroutine and collections.abc.Awaitable ABCs. [The __instancecheck__ is still used for generator-based coroutines, as we don't want to add __await__ for generators.] 3. Add new opcode: GET_YIELD_FROM_ITER. The opcode is needed to allow passing native coroutines to the YIELD_FROM opcode. Before this change, 'yield from o' expression was compiled to: (o) GET_ITER LOAD_CONST YIELD_FROM Now, we use GET_YIELD_FROM_ITER instead of GET_ITER. The reason for adding a new opcode is that GET_ITER is used in some contexts (such as 'for .. in' loops) where passing a coroutine object is invalid. 4. Add two new introspection functions to the inspec module: getcoroutinestate(c) and getcoroutinelocals(c). 5. inspect.iscoroutine(o) is updated to test if 'o' is a native coroutine object. Before this commit it used abc.Coroutine, and it was requested to update inspect.isgenerator(o) to use abc.Generator; it was decided, however, that inspect functions should really be tailored for checking for native types. 6. sys.set_coroutine_wrapper(w) API is updated to work with only native coroutines. Since types.coroutine decorator supports any type of callables now, it would be confusing that it does not work for all types of coroutines. 7. Exceptions logic in generators C implementation was updated to raise clearer messages for coroutines: Before: TypeError("generator raised StopIteration") After: TypeError("coroutine raised StopIteration")
* | | Issue #24408: Fixed test for tkinter.Font on OS X.Serhiy Storchaka2015-06-211-1/+10
|\ \ \ | |/ / | | | | | | Based on patch by Martin Panter.
| * | Issue #24408: Fixed test for tkinter.Font on OS X.Serhiy Storchaka2015-06-211-1/+10
| |/ | | | | | | Based on patch by Martin Panter.
| * Issue #15745: Rewrite os.utime() tests in test_osVictor Stinner2015-06-121-202/+210
| | | | | | | | | | | | | | | | | | | | * Don't use the timestamp of an existing file anymore, only use fixed timestamp * Enhance the code checking the resolution of the filesystem timestamps. * Check timestamps with a resolution of 1 microsecond instead of 1 millisecond * When os.utime() uses the current system clock, tolerate a delta of 20 ms. Before some os.utime() tolerated a different of 10 seconds. * Merge duplicated tests and simplify the code
* | Issue #8232: Renamed WinFireFox to WinFirefoxSteve Dower2015-06-151-2/+2
| |
* | (Merge 3.4) Issue #15745: Rewrite os.utime() tests in test_osVictor Stinner2015-06-121-202/+209
| | | | | | | | | | | | | | | | | | | | * Don't use the timestamp of an existing file anymore, only use fixed timestamp * Enhance the code checking the resolution of the filesystem timestamps. * Check timestamps with a resolution of 1 microsecond instead of 1 millisecond * When os.utime() uses the current system clock, tolerate a delta of 20 ms. Before some os.utime() tolerated a different of 10 seconds. * Merge duplicated tests and simplify the code
* | Issue #24408: Added more tkinter.Font tests.Serhiy Storchaka2015-06-091-5/+65
|\ \ | |/
| * Issue #24408: Added more tkinter.Font tests.Serhiy Storchaka2015-06-091-5/+65
| |
* | Issue #24299: Fixed test__locale on Solaris.Serhiy Storchaka2015-06-081-2/+3
|\ \ | |/
| * Issue #24299: Fixed test__locale on Solaris.Serhiy Storchaka2015-06-081-2/+3
| |
* | Issue #24408: Fixed AttributeError in measure() and metrics() methods ofSerhiy Storchaka2015-06-081-3/+3
| | | | | | | | tkinter.Font.
* | Issue #14373: Other attempt to fix threaded test for lru_cache().Serhiy Storchaka2015-06-081-6/+11
| |
* | Issue #14373: C implementation of functools.lru_cache() now can be used withSerhiy Storchaka2015-06-081-0/+31
| | | | | | | | methods.
* | Issue #14373: Fixed threaded test for lru_cache(). Added new threaded test.Serhiy Storchaka2015-06-081-14/+47
| |
* | Issue #8232: webbrowser support incomplete on Windows. Patch by Brandon MilamSteve Dower2015-06-081-9/+111
| |
* | added matmul and imatmul to operator.__all__Tal Einat2015-06-071-6/+6
| |
* | Issue 24374: Plug refleak in set_coroutine_wrapperYury Selivanov2015-06-041-2/+2
| |
* | Issue #24369: Defend against key-changes during iteration.Eric Snow2015-06-041-0/+17
| |
* | Issue #24368: Support keyword arguments in OrderedDict methods.Eric Snow2015-06-031-1/+15
| |
* | Issue 24342: Let wrapper set by sys.set_coroutine_wrapper fail gracefullyYury Selivanov2015-06-021-0/+20
| |
* | Merge update to pip/setuptoolsDonald Stufft2015-06-023-2/+2
|\ \ | |/
| * Upgrade pip to 7.0.3 and setuptools to 17.0Donald Stufft2015-06-023-2/+2
| |
* | Merge the fix for #24267Donald Stufft2015-06-022-6/+21
|\ \ | |/