summaryrefslogtreecommitdiffstats
path: root/Doc/library/sys.rst
Commit message (Collapse)AuthorAgeFilesLines
* Issue #26736: Used HTTPS for external links in the documentation if possible.Serhiy Storchaka2016-05-071-1/+1
|
* Issue #23936: Clarify what finders are.Brett Cannon2015-12-041-13/+26
| | | | | Thanks to Raúl Cumplido for the bug report and Thomas Kluyver for the patch.
* sys.setrecursionlimit() now raises RecursionErrorVictor Stinner2015-10-121-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.5Martin Panter2015-10-101-1/+1
|\
| * Issue #25161: Add full stops in documentation; patch by Takase ArihiroMartin Panter2015-10-101-1/+1
| |
| * Doc: fix default role usage (except in unittest mock docs)Georg Brandl2014-10-301-1/+1
| |
* | Fix usage of the default role.Zachary Ware2015-07-071-1/+1
| |
* | Issue #24439: Improve PEP 492 related docs.Yury Selivanov2015-06-241-2/+3
| | | | | | | | Patch by Martin Panter.
* | Issue #24400: Introduce a distinct type for 'async def' coroutines.Yury Selivanov2015-06-221-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 typoYury Selivanov2015-06-041-2/+2
| |
* | Issue 24342: Let wrapper set by sys.set_coroutine_wrapper fail gracefullyYury Selivanov2015-06-021-0/+14
| |
* | Issue 24180: Document sys.(set|get)_coroutine_wrapperYury Selivanov2015-05-311-0/+34
| |
* | Issue #23731: Implement PEP 488.Brett Cannon2015-04-131-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 Pitrou2014-12-071-0/+8
| | | | | | | | interpreter shutdown.
* | Doc: fix default role usage (except in unittest mock docs)Georg Brandl2014-10-301-1/+1
|/
* Revert #22251Berker Peksag2014-09-271-1/+0
|
* Issue #22251: Fix ReST markup to avoid errors building docs.Berker Peksag2014-09-271-0/+1
|
* Issue #21364: remove recommendation of broken pattern.Antoine Pitrou2014-05-151-15/+12
|
* Fix a few scoping issues with versionadded/versionchanged directives.Georg Brandl2014-03-241-1/+2
|
* closes #20960R David Murray2014-03-171-1/+1
|
* Merge in all documentation changes since branching 3.4.0rc1.Larry Hastings2014-03-161-5/+8
|
* Removed spaces before commas and periods.Serhiy Storchaka2013-12-231-1/+1
|\
| * Removed spaces before commas and periods.Serhiy Storchaka2013-12-231-1/+1
| |
* | (Merge 3.3) Issue #19728: Fix sys.getfilesystemencoding() documentationVictor Stinner2013-12-021-3/+2
|\ \ | |/
| * Issue #19728: Fix sys.getfilesystemencoding() documentationVictor Stinner2013-12-021-3/+2
| |
* | Issue #19795: Improved markup of True/False constants.Serhiy Storchaka2013-11-291-1/+1
|\ \ | |/
| * Issue #19795: Improved markup of True/False constants.Serhiy Storchaka2013-11-291-1/+1
| |
* | ssue #19183: Implement PEP 456 'secure and interchangeable hash algorithm'.Christian Heimes2013-11-201-0/+11
| | | | | | | | Python now uses SipHash24 on all major platforms.
* | #13226: update references from ctypes/DLFCN modules to os moduleAndrew Kuchling2013-06-211-4/+5
| |
* | merge fix for issue #17953Brett Cannon2013-05-241-0/+2
|\ \ | |/
| * Issue #17953: document that sys.modules shouldn't be replaced (thanksBrett Cannon2013-05-241-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 Pitrou2013-05-041-0/+10
| | | | | | | | | | | | default, thanks to a new sys.__interactivehook__. (original patch by Éric Araujo)
* | Merge with 3.3.Georg Brandl2013-03-281-0/+6
|\ \ | |/
| * Closes #4159: add LaTeX tabular column specifications to tables that ↵Georg Brandl2013-03-281-0/+6
| | | | | | | | otherwise are cut off or have overlapping text.
| * Issue #17176: Document that imp.NullImporter is no longerBrett Cannon2013-03-131-3/+6
| | | | | | | | automatically used by import.
* | Issue #17176: Document that imp.NullImporter is no longer insertedBrett Cannon2013-03-131-3/+6
| | | | | | | | into sys.path_importer_cache.
* | Merge fix for #15465 from 3.3Nick Coghlan2013-03-071-23/+1
|\ \ | |/
| * Close #15465: Document C API version macrosNick Coghlan2013-03-071-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 Peterson2013-01-151-15/+0
|\ \ | |/
| * remove warning about tb circular reference (closes #7340)Benjamin Peterson2013-01-151-15/+0
| |
* | Following issue #13390, fix compilation --without-pymalloc, and make ↵Antoine Pitrou2012-12-171-7/+8
| | | | | | | | sys.getallocatedblocks() return 0 in that situation.
* | Issue #13390: New function :func:`sys.getallocatedblocks()` returns the ↵Antoine Pitrou2012-12-091-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 Araujo2012-12-091-1/+1
|\ \ | |/
| * Merge fixes for #13614, #13512 and #7719 from 3.2Éric Araujo2012-12-091-1/+1
| |\
| | * Fix a few markup/grammar nitsÉric Araujo2012-12-081-1/+1
| | |
* | | - Issue #16514: Fix regression causing a traceback when sys.path[0] is NoneBarry Warsaw2012-11-201-1/+3
|\ \ \ | |/ / | | | | | | (actually, any non-string or non-bytes type).
| * | - Issue #16514: Fix regression causing a traceback when sys.path[0] is NoneBarry Warsaw2012-11-201-1/+3
| | | | | | | | | | | | (actually, any non-string or non-bytes type).
* | | #16135: Removal of OS/2 support (Docs)Jesus Cea2012-10-041-3/+0
|/ /
* | Added cross-references to venv definition.Vinay Sajip2012-07-091-11/+14
| |
* | Issue #14785: Add sys._debugmallocstats() to help debug low-level memory ↵David Malcolm2012-06-221-0/+16
| | | | | | | | allocation issues