summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Issue #24400: Introduce a distinct type for 'async def' coroutines.Yury Selivanov2015-06-2229-379/+1015
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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")
* Fixed documentation of functions with const char* arguments.Serhiy Storchaka2015-06-2110-19/+19
|\
| * Fixed documentation of functions with const char* arguments.Serhiy Storchaka2015-06-2110-19/+19
| |
* | Added the const qualifier for char* argument of Py_EnterRecursiveCall().Serhiy Storchaka2015-06-213-3/+3
|\ \ | |/
| * Added the const qualifier for char* argument of Py_EnterRecursiveCall().Serhiy Storchaka2015-06-213-3/+3
| |
* | Issue #24436: Added const qualifiers for char* arguments of _PyTraceback_Add.Serhiy Storchaka2015-06-212-2/+2
|\ \ | |/ | | | | Patch by Michael Ensslin.
| * Issue #24436: Added const qualifiers for char* arguments of _PyTraceback_Add.Serhiy Storchaka2015-06-212-2/+2
| | | | | | | | Patch by Michael Ensslin.
* | 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 24476: Statically links vcruntime140.dll and removes it from the installerSteve Dower2015-06-1910-148/+7
| |
* | Merge 3.4Zachary Ware2015-06-175-3/+15
|\ \ | |/
| * Deprecate unused scripts in Tools/buildbot.Zachary Ware2015-06-165-3/+15
| | | | | | | | | | I would just outright delete them, but the readme in PCbuild recommended their use, so I figure it would be nice to leave them there for a while.
* | Merge 3.4's PCbuild/readme.txt update.Zachary Ware2015-06-171-2/+3
|\ \ | |/ | | | | | | All the new information in 3.4's readme.txt was already here, but the wrong name was used to refer to the script. Also reworded the sentence.
| * Update PCbuild/readme.txtZachary Ware2015-06-171-40/+8
| | | | | | | | | | It now recommends PCbuild/get_externals.bat instead of the scripts in Tools/buildbot.
* | Issue #8232: Renamed WinFireFox to WinFirefoxSteve Dower2015-06-151-2/+2
| |
* | null merge 3.4 to 3.5 (9a0c5ffe7420 merged 3.4 to default, bypassing 3.5)Ned Deily2015-06-150-0/+0
|\ \ | |/
| * Back porting changeset db302b88fdb6 to 3.4 branch, which fixed multiple ↵Senthil Kumaran2015-06-1528-37/+37
| | | | | | | | | | | | | | | | | | documentation typos. Related Issues: #issue21528 #issue24453
* | mergeRaymond Hettinger2015-06-140-0/+0
|\ \ | |/
| * Issue #24453: Fix doubled word.Raymond Hettinger2015-06-141-1/+1
| |
* | Issue #24435: Use the devguide link instead of PEP 306 in Grammar/Grammar.Berker Peksag2015-06-131-2/+2
|\ \ | |/
| * Issue #24435: Use the devguide link instead of PEP 306 in Grammar/Grammar.Berker Peksag2015-06-131-2/+2
| |
* | Merge with 3.4Terry Jan Reedy2015-06-121-1/+1
|\ \ | |/
| * whitespaceTerry Jan Reedy2015-06-121-1/+1
| |
* | Merge 3.4Terry Jan Reedy2015-06-121-0/+4
|\ \ | |/
| * Issue #24406: Add sentences on dict comparisons, similar to those for SequenceTerry Jan Reedy2015-06-121-0/+4
| | | | | | | | and set comparisions. Patch by Gareth Rees.
| * 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
* | (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
* | Merge with 3.4Terry Jan Reedy2015-06-121-1/+1
|\ \ | |/
| * Closes issue #24405: mark set display as code.Terry Jan Reedy2015-06-121-1/+1
| |
* | Issue #24423: Fix formatting error in 3.5 whatsnewNed Deily2015-06-101-2/+2
| |
* | Fixed indentation of Python examples in C comments.Serhiy Storchaka2015-06-105-34/+34
|\ \ | |/
| * Fixed indentation of Python examples in C comments.Serhiy Storchaka2015-06-105-34/+34
| |
* | Merge forward extras beyond #21907 backport.Zachary Ware2015-06-106-28/+28
|\ \ | |/
| * Clean up/refactor the batch scripts used for building on Windows.Zachary Ware2015-06-1014-200/+262
| | | | | | | | | | This is mostly a backport of issue #21907, but also includes a few extras necessary to make the bulidbot scripts as thin as possible.
* | - Issue #24351: Clarify what is meant by "identifier" in the context ofBarry Warsaw2015-06-092-6/+14
|\ \ | |/ | | | | string.Template instances.
| * - Issue #24351: Clarify what is meant by "identifier" in the context ofBarry Warsaw2015-06-092-6/+11
| | | | | | | | string.Template instances.
* | Merge from 3.4Tal Einat2015-06-091-3/+3
|\ \ | |/
| * #23891: correctly refer to PyPI as "Python Package Index"Tal Einat2015-06-091-3/+3
| |
* | 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
| |
* | Merge from 3.4Andrew Kuchling2015-06-081-1/+1
|\ \ | |/
| * #23891: remove extra wordsAndrew Kuchling2015-06-081-1/+1
| |
* | Merge from 3.4Andrew Kuchling2015-06-082-0/+198
|\ \ | |/
| * #23891: add a section to the Tutorial describing virtual environments and pipAndrew Kuchling2015-06-082-0/+198
| |
* | Merge from 3.4Andrew Kuchling2015-06-082-15/+32
|\ \ | |/
| * Add link to pyvideoorgAndrew Kuchling2015-06-071-0/+3
| |
| * #23891: rework discussion of python-list a bitAndrew Kuchling2015-06-071-8/+5
| |
| * #23891: describe a few more modules in the tutorialAndrew Kuchling2015-04-101-7/+24
| |
* | Issue 24385: Adds "--as-flags=--32" when generating 32-bit MinGW library.Steve Dower2015-06-081-3/+3
| |
* | Issue #24299: Fixed test__locale on Solaris.Serhiy Storchaka2015-06-081-2/+3
|\ \ | |/