Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | sys.setrecursionlimit() now raises RecursionError | Victor Stinner | 2015-10-12 | 1 | -0/+7 |
| | | | | | | | 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. | ||||
* | Issue #25161: Merge full stops from 3.4 into 3.5 | Martin Panter | 2015-10-10 | 1 | -1/+1 |
|\ | |||||
| * | Issue #25161: Add full stops in documentation; patch by Takase Arihiro | Martin Panter | 2015-10-10 | 1 | -1/+1 |
| | | |||||
| * | Doc: fix default role usage (except in unittest mock docs) | Georg Brandl | 2014-10-30 | 1 | -1/+1 |
| | | |||||
* | | Fix usage of the default role. | Zachary Ware | 2015-07-07 | 1 | -1/+1 |
| | | |||||
* | | Issue #24439: Improve PEP 492 related docs. | Yury Selivanov | 2015-06-24 | 1 | -2/+3 |
| | | | | | | | | Patch by Martin Panter. | ||||
* | | Issue #24400: Introduce a distinct type for 'async def' coroutines. | Yury Selivanov | 2015-06-22 | 1 | -1/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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") | ||||
* | | Docs: Fix typo | Yury Selivanov | 2015-06-04 | 1 | -2/+2 |
| | | |||||
* | | Issue 24342: Let wrapper set by sys.set_coroutine_wrapper fail gracefully | Yury Selivanov | 2015-06-02 | 1 | -0/+14 |
| | | |||||
* | | Issue 24180: Document sys.(set|get)_coroutine_wrapper | Yury Selivanov | 2015-05-31 | 1 | -0/+34 |
| | | |||||
* | | Issue #23731: Implement PEP 488. | Brett Cannon | 2015-04-13 | 1 | -2/+1 |
| | | | | | | | | | | | | The concept of .pyo files no longer exists. Now .pyc files have an optional `opt-` tag which specifies if any extra optimizations beyond the peepholer were applied. | ||||
* | | Issue #22696: Add function :func:`sys.is_finalizing` to know about ↵ | Antoine Pitrou | 2014-12-07 | 1 | -0/+8 |
| | | | | | | | | interpreter shutdown. | ||||
* | | Doc: fix default role usage (except in unittest mock docs) | Georg Brandl | 2014-10-30 | 1 | -1/+1 |
|/ | |||||
* | Revert #22251 | Berker Peksag | 2014-09-27 | 1 | -1/+0 |
| | |||||
* | Issue #22251: Fix ReST markup to avoid errors building docs. | Berker Peksag | 2014-09-27 | 1 | -0/+1 |
| | |||||
* | Issue #21364: remove recommendation of broken pattern. | Antoine Pitrou | 2014-05-15 | 1 | -15/+12 |
| | |||||
* | Fix a few scoping issues with versionadded/versionchanged directives. | Georg Brandl | 2014-03-24 | 1 | -1/+2 |
| | |||||
* | closes #20960 | R David Murray | 2014-03-17 | 1 | -1/+1 |
| | |||||
* | Merge in all documentation changes since branching 3.4.0rc1. | Larry Hastings | 2014-03-16 | 1 | -5/+8 |
| | |||||
* | Removed spaces before commas and periods. | Serhiy Storchaka | 2013-12-23 | 1 | -1/+1 |
|\ | |||||
| * | Removed spaces before commas and periods. | Serhiy Storchaka | 2013-12-23 | 1 | -1/+1 |
| | | |||||
* | | (Merge 3.3) Issue #19728: Fix sys.getfilesystemencoding() documentation | Victor Stinner | 2013-12-02 | 1 | -3/+2 |
|\ \ | |/ | |||||
| * | Issue #19728: Fix sys.getfilesystemencoding() documentation | Victor Stinner | 2013-12-02 | 1 | -3/+2 |
| | | |||||
* | | Issue #19795: Improved markup of True/False constants. | Serhiy Storchaka | 2013-11-29 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue #19795: Improved markup of True/False constants. | Serhiy Storchaka | 2013-11-29 | 1 | -1/+1 |
| | | |||||
* | | ssue #19183: Implement PEP 456 'secure and interchangeable hash algorithm'. | Christian Heimes | 2013-11-20 | 1 | -0/+11 |
| | | | | | | | | Python now uses SipHash24 on all major platforms. | ||||
* | | #13226: update references from ctypes/DLFCN modules to os module | Andrew Kuchling | 2013-06-21 | 1 | -4/+5 |
| | | |||||
* | | merge fix for issue #17953 | Brett Cannon | 2013-05-24 | 1 | -0/+2 |
|\ \ | |/ | |||||
| * | Issue #17953: document that sys.modules shouldn't be replaced (thanks | Brett Cannon | 2013-05-24 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | | to interp->modules) and that deleting essential items from the dict can cause Python to blow up. Thanks to Terry Reedy for coming up with initial wording and Yogesh Chaudhari for coming up with a patch using that wording in parallel to my own patch. | ||||
* | | Issue #5845: Enable tab-completion in the interactive interpreter by ↵ | Antoine Pitrou | 2013-05-04 | 1 | -0/+10 |
| | | | | | | | | | | | | default, thanks to a new sys.__interactivehook__. (original patch by Éric Araujo) | ||||
* | | Merge with 3.3. | Georg Brandl | 2013-03-28 | 1 | -0/+6 |
|\ \ | |/ | |||||
| * | Closes #4159: add LaTeX tabular column specifications to tables that ↵ | Georg Brandl | 2013-03-28 | 1 | -0/+6 |
| | | | | | | | | otherwise are cut off or have overlapping text. | ||||
| * | Issue #17176: Document that imp.NullImporter is no longer | Brett Cannon | 2013-03-13 | 1 | -3/+6 |
| | | | | | | | | automatically used by import. | ||||
* | | Issue #17176: Document that imp.NullImporter is no longer inserted | Brett Cannon | 2013-03-13 | 1 | -3/+6 |
| | | | | | | | | into sys.path_importer_cache. | ||||
* | | Merge fix for #15465 from 3.3 | Nick Coghlan | 2013-03-07 | 1 | -23/+1 |
|\ \ | |/ | |||||
| * | Close #15465: Document C API version macros | Nick Coghlan | 2013-03-07 | 1 | -23/+1 |
| | | | | | | | | | | | | | | Mostly moving the existing macro docs over from the standard library docs to the C API docs where they belong. Patch by Kushal Das. | ||||
* | | merge 3.3 (#7340) | Benjamin Peterson | 2013-01-15 | 1 | -15/+0 |
|\ \ | |/ | |||||
| * | remove warning about tb circular reference (closes #7340) | Benjamin Peterson | 2013-01-15 | 1 | -15/+0 |
| | | |||||
* | | Following issue #13390, fix compilation --without-pymalloc, and make ↵ | Antoine Pitrou | 2012-12-17 | 1 | -7/+8 |
| | | | | | | | | sys.getallocatedblocks() return 0 in that situation. | ||||
* | | Issue #13390: New function :func:`sys.getallocatedblocks()` returns the ↵ | Antoine Pitrou | 2012-12-09 | 1 | -0/+14 |
| | | | | | | | | | | | | number of memory blocks currently allocated. Also, the ``-R`` option to regrtest uses this function to guard against memory allocation leaks. | ||||
* | | Merge fixes for #13614, #13512 and #7719 from 3.3 | Éric Araujo | 2012-12-09 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Merge fixes for #13614, #13512 and #7719 from 3.2 | Éric Araujo | 2012-12-09 | 1 | -1/+1 |
| |\ | |||||
| | * | Fix a few markup/grammar nits | Éric Araujo | 2012-12-08 | 1 | -1/+1 |
| | | | |||||
* | | | - Issue #16514: Fix regression causing a traceback when sys.path[0] is None | Barry Warsaw | 2012-11-20 | 1 | -1/+3 |
|\ \ \ | |/ / | | | | | | | (actually, any non-string or non-bytes type). | ||||
| * | | - Issue #16514: Fix regression causing a traceback when sys.path[0] is None | Barry Warsaw | 2012-11-20 | 1 | -1/+3 |
| | | | | | | | | | | | | (actually, any non-string or non-bytes type). | ||||
* | | | #16135: Removal of OS/2 support (Docs) | Jesus Cea | 2012-10-04 | 1 | -3/+0 |
|/ / | |||||
* | | Added cross-references to venv definition. | Vinay Sajip | 2012-07-09 | 1 | -11/+14 |
| | | |||||
* | | Issue #14785: Add sys._debugmallocstats() to help debug low-level memory ↵ | David Malcolm | 2012-06-22 | 1 | -0/+16 |
| | | | | | | | | allocation issues | ||||
* | | Elaborate that sizeof only accounts for the object itself. | Martin v. Löwis | 2012-06-17 | 1 | -0/+3 |
| | | |||||
* | | A few documentation improvements, spurred on by Brett's review. | Barry Warsaw | 2012-06-04 | 1 | -10/+13 |
| | |