Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Refactor pytime.c | Victor Stinner | 2015-09-02 | 1 | -48/+65 |
| | | | | Move code to convert double timestamp to subfunctions. | ||||
* | Merge from 3.5 (with 3.5.0rc2 changes) into default (3.6). Messy! | Larry Hastings | 2015-08-25 | 3 | -25/+75 |
|\ | |||||
| * | Rebuilt Clinic generated code. | Larry Hastings | 2015-08-24 | 2 | -3/+3 |
| | | |||||
| * | Issue #24769: Interpreter now starts properly when dynamic loading | Larry Hastings | 2015-08-24 | 3 | -25/+75 |
| | | | | | | | | is disabled. Patch by Petr Viktorin. | ||||
* | | Fix a trivial typo. | Eric V. Smith | 2015-08-21 | 1 | -1/+1 |
| | | |||||
* | | Use PyTuple_GET_SIZE like the adjacent code does. | Raymond Hettinger | 2015-08-18 | 1 | -1/+1 |
| | | |||||
* | | Inline PyIter_Next() matching the other itertools code. | Raymond Hettinger | 2015-08-18 | 1 | -1/+2 |
| | | |||||
* | | Merge from 3.5 for issue #24492 | Brett Cannon | 2015-08-14 | 1 | -7/+12 |
|\ \ | |/ | |||||
| * | Issue #24492: make sure that ``from ... import ...` raises an | Brett Cannon | 2015-08-11 | 1 | -7/+12 |
| | | | | | | | | | | | | ImportError if __name__ is not defined on a package. Thanks to Armin Rigo for the bug report and diagnosing the cause. | ||||
* | | Issue #9232: Support trailing commas in function declarations. | Robert Collins | 2015-08-12 | 2 | -55/+74 |
| | | | | | | | | | | | | For example, "def f(*, a = 3,): pass" is now legal. Patch from Mark Dickinson. | ||||
* | | Merge 3.5 (issue #24791) | Yury Selivanov | 2015-08-05 | 2 | -34/+33 |
|\ \ | |/ | |||||
| * | Issue #24791: Fix grammar regression for call syntax: 'g(*a or b)'. | Yury Selivanov | 2015-08-05 | 2 | -34/+33 |
| | | |||||
* | | Merge 3.5 (os.urandom) | Victor Stinner | 2015-07-30 | 1 | -1/+0 |
|\ \ | |/ | |||||
| * | py_getrandom(): getrandom() *can* return EINTR | Victor Stinner | 2015-07-30 | 1 | -1/+0 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See the latest version of getrandom() manual page: http://man7.org/linux/man-pages/man2/getrandom.2.html#NOTES The behavior when a call to getrandom() that is blocked while reading from /dev/urandom is interrupted by a signal handler depends on the initialization state of the entropy buffer and on the request size, buflen. If the entropy is not yet initialized, then the call will fail with the EINTR error. If the entropy pool has been initialized and the request size is large (buflen > 256), the call either succeeds, returning a partially filled buffer, or fails with the error EINTR. If the entropy pool has been initialized and the request size is small (buflen <= 256), then getrandom() will not fail with EINTR. Instead, it will return all of the bytes that have been requested. Note: py_getrandom() calls getrandom() with flags=0. | ||||
* | | Fix refleak. | Stefan Krah | 2015-07-27 | 1 | -1/+3 |
|\ \ | |/ | |||||
| * | Fix refleak. | Stefan Krah | 2015-07-27 | 1 | -1/+3 |
| | | |||||
* | | Merge 3.5 (Issue #24687) | Yury Selivanov | 2015-07-23 | 1 | -14/+13 |
|\ \ | |/ | |||||
| * | Issue #24687: Plug refleak on SyntaxError in function parameters annotations. | Yury Selivanov | 2015-07-23 | 1 | -14/+13 |
| | | |||||
* | | Merge 3.5 (Issue #24619) | Yury Selivanov | 2015-07-22 | 2 | -4/+3 |
|\ \ | |/ | |||||
| * | Issue #24619: More tests; fix nits in compiler.c | Yury Selivanov | 2015-07-22 | 2 | -4/+3 |
| | | |||||
* | | merge 3.5 (#24569) | Benjamin Peterson | 2015-07-05 | 1 | -6/+9 |
|\ \ | |/ | |||||
| * | set items in dict displays from left to right (closes #24569) | Benjamin Peterson | 2015-07-05 | 1 | -6/+9 |
| | | |||||
* | | Merge 3.5 (Issue #19235) | Yury Selivanov | 2015-07-03 | 3 | -4/+4 |
|\ \ | |/ | |||||
| * | Issue #19235: Add new RecursionError exception. Patch by Georg Brandl. | Yury Selivanov | 2015-07-03 | 3 | -4/+4 |
| | | |||||
* | | Merge 3.5 (Issue #24528) | Yury Selivanov | 2015-06-30 | 1 | -1/+4 |
|\ \ | |/ | |||||
| * | Issue #24528: Improve error message for awaits in comprehensions | Yury Selivanov | 2015-06-30 | 1 | -1/+4 |
| | | |||||
* | | Issue #24400: Merge 3.5 | Yury Selivanov | 2015-06-22 | 4 | -151/+148 |
|\ \ | |/ | |||||
| * | Issue #24400: Introduce a distinct type for 'async def' coroutines. | Yury Selivanov | 2015-06-22 | 4 | -151/+148 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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") | ||||
* | | Added the const qualifier for char* argument of Py_EnterRecursiveCall(). | Serhiy Storchaka | 2015-06-21 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Added the const qualifier for char* argument of Py_EnterRecursiveCall(). | Serhiy Storchaka | 2015-06-21 | 1 | -1/+1 |
| |\ | |||||
| | * | Added the const qualifier for char* argument of Py_EnterRecursiveCall(). | Serhiy Storchaka | 2015-06-21 | 1 | -1/+1 |
| | | | |||||
* | | | Issue #24436: Added const qualifiers for char* arguments of _PyTraceback_Add. | Serhiy Storchaka | 2015-06-21 | 1 | -1/+1 |
|\ \ \ | |/ / | | | | | | | Patch by Michael Ensslin. | ||||
| * | | Issue #24436: Added const qualifiers for char* arguments of _PyTraceback_Add. | Serhiy Storchaka | 2015-06-21 | 1 | -1/+1 |
| |\ \ | | |/ | | | | | | | Patch by Michael Ensslin. | ||||
| | * | Issue #24436: Added const qualifiers for char* arguments of _PyTraceback_Add. | Serhiy Storchaka | 2015-06-21 | 1 | -1/+1 |
| | | | | | | | | | | | | Patch by Michael Ensslin. | ||||
* | | | Fixed indentation of Python examples in C comments. | Serhiy Storchaka | 2015-06-11 | 1 | -4/+4 |
|\ \ \ | |/ / | |||||
| * | | Fixed indentation of Python examples in C comments. | Serhiy Storchaka | 2015-06-11 | 1 | -2/+2 |
| |\ \ |/ / / | | _ | |||||
| * | Fixed indentation of Python examples in C comments. | Serhiy Storchaka | 2015-06-11 | 1 | -2/+2 |
| | | |||||
* | | Issue 24374: Plug refleak in set_coroutine_wrapper | Yury Selivanov | 2015-06-04 | 1 | -31/+19 |
| | | |||||
* | | Issue 24342: No need to use PyAPI_FUNC for _PyEval_ApplyCoroutineWrapper | Yury Selivanov | 2015-06-02 | 1 | -28/+30 |
| | | |||||
* | | Issue 24366: Merge 3.4 | Yury Selivanov | 2015-06-02 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue 24366: Merge 3.3 | Yury Selivanov | 2015-06-02 | 1 | -1/+1 |
| |\ | |||||
| | * | Issue 24366: Indent code (thanks to li4ick for reporting). | Yury Selivanov | 2015-06-02 | 1 | -1/+1 |
| | | | |||||
* | | | Issue 24342: Let wrapper set by sys.set_coroutine_wrapper fail gracefully | Yury Selivanov | 2015-06-02 | 2 | -9/+31 |
| | | | |||||
* | | | Issue 24017: Make PyEval_(Set|Get)CoroutineWrapper private | Yury Selivanov | 2015-06-01 | 2 | -6/+6 |
| | | | |||||
* | | | Issue #24115: Update uses of PyObject_IsTrue(), PyObject_Not(), | Serhiy Storchaka | 2015-05-30 | 2 | -6/+11 |
|\ \ \ | |/ / | | | | | | | | | | PyObject_IsInstance(), PyObject_RichCompareBool() and _PyDict_Contains() to check for and handle errors correctly. | ||||
| * | | Issue #24115: Update uses of PyObject_IsTrue(), PyObject_Not(), | Serhiy Storchaka | 2015-05-30 | 2 | -6/+11 |
| | | | | | | | | | | | | | | | PyObject_IsInstance(), PyObject_RichCompareBool() and _PyDict_Contains() to check for and handle errors correctly. | ||||
* | | | Specify default values of semantic booleans in Argument Clinic generated ↵ | Serhiy Storchaka | 2015-05-30 | 2 | -9/+9 |
| | | | | | | | | | | | | signatures as booleans. | ||||
* | | | Use converter names instead of format units in Argument Clinic descriptions | Serhiy Storchaka | 2015-05-30 | 1 | -72/+72 |
| | | | | | | | | | | | | in builtin and _crypt modules. | ||||
* | | | fix importing one char extension modules (closes #24328) | Benjamin Peterson | 2015-05-29 | 1 | -10/+9 |
| | | | |||||
* | | | remove STORE_MAP, since it's unused | Benjamin Peterson | 2015-05-28 | 3 | -18/+1 |
| | | |