summaryrefslogtreecommitdiffstats
path: root/Doc/library
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge 3.4Yury Selivanov2015-06-251-2/+2
|\ \ | |/
| * asyncio.docs: Use less confusing titleYury Selivanov2015-06-251-2/+2
| |
| * Back porting changeset db302b88fdb6 to 3.4 branch, which fixed multiple ↵Senthil Kumaran2015-06-1521-24/+24
| | | | | | | | | | | | | | | | | | documentation typos. Related Issues: #issue21528 #issue24453
| * Issue #24453: Fix doubled word.Raymond Hettinger2015-06-141-1/+1
| |
* | Issue #24439: Update tulip_coro.diaYury Selivanov2015-06-251-0/+0
| |
* | Issue #24439: Improve PEP 492 related docs.Yury Selivanov2015-06-247-54/+90
| | | | | | | | Patch by Martin Panter.
* | Issue #24400: Introduce a distinct type for 'async def' coroutines.Yury Selivanov2015-06-224-20/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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")
* | 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 #24351: Clarify what is meant by "identifier" in the context ofBarry Warsaw2015-06-091-6/+8
|\ \ | |/ | | | | string.Template instances.
| * - Issue #24351: Clarify what is meant by "identifier" in the context ofBarry Warsaw2015-06-091-6/+8
| | | | | | | | string.Template instances.
* | merge 3.4Benjamin Peterson2015-06-061-1/+0
|\ \ | |/
| * that this is "for Python" is obviousBenjamin Peterson2015-06-061-1/+0
| |
* | Issue #23659: Document **fmtparams in csv.register_dialect docstring.Berker Peksag2015-06-051-1/+1
|\ \ | |/ | | | | Initial patch by Brandon Milam.
| * Issue #23659: Document **fmtparams in csv.register_dialect docstring.Berker Peksag2015-06-051-1/+1
| | | | | | | | Initial patch by Brandon Milam.
* | Issue #24148: Fix incorrect Stats.sort_stats() example.Berker Peksag2015-06-051-1/+1
|\ \ | |/ | | | | | | | | "cum" is not a valid argument. Patch by Brandon Milam.
| * Issue #24148: Fix incorrect Stats.sort_stats() example.Berker Peksag2015-06-051-1/+1
| | | | | | | | | | | | "cum" is not a valid argument. Patch by Brandon Milam.
* | 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 #24357: merge from 3.4Ned Deily2015-06-021-4/+4
|\ \ | |/
| * Issue #24357: use example.org insteadNed Deily2015-06-021-4/+4
| |
* | Issue #24357: merge from 3.4Ned Deily2015-06-021-1/+1
|\ \ | |/
| * Issue #24357: fix real typoNed Deily2015-06-021-1/+1
| |
* | Issue #24357: merge from 3.4Ned Deily2015-06-021-1/+1
|\ \ | |/
| * Issue #24357: fix typoNed Deily2015-06-021-1/+1
| |
* | Issue #24357: merge from 3.4Ned Deily2015-06-021-4/+6
|\ \ | |/
| * Issue #24357: Change host in socket.getaddrinfo example to one thatNed Deily2015-06-021-4/+6
| | | | | | | | does support IPv6 and IPv4; www.python.org currently does not.
* | Issue 24180: Document sys.(set|get)_coroutine_wrapperYury Selivanov2015-05-311-0/+34
| |
* | Issue #19543: Implementation of isclose as per PEP 485Tal Einat2015-05-312-0/+64
| | | | | | | | | | | | | | | | | | For details, see: PEP 0485 -- A Function for testing approximate equality Functions added: math.isclose() and cmath.isclose(). Original code by Chris Barker. Patch by Tal Einat.
* | Issue 22357: Merge from 3.4Yury Selivanov2015-05-301-0/+11
|\ \ | |/
| * Issue 22357: Document __qualname__ in inspect.rstYury Selivanov2015-05-301-0/+11
| |
* | Issue 24315: Make collections.abc.Coroutine derived from AwaitableYury Selivanov2015-05-291-5/+5
| |
* | remove STORE_MAP, since it's unusedBenjamin Peterson2015-05-281-4/+0
| |
* | Fix Sphinx warnings.Berker Peksag2015-05-231-0/+1
| |
* | Merge with 3.4Terry Jan Reedy2015-05-231-1/+1
|\ \ | |/
| * Make expression legal python by adding '1'.Terry Jan Reedy2015-05-231-1/+1
| |
* | Issue #24204: Elaborate of the str.strip() documentation.Raymond Hettinger2015-05-231-0/+10
| |
* | Issue #24269: Minor doc fixups.Raymond Hettinger2015-05-231-5/+6
| |
* | PEP 489: Multi-phase extension module initializationNick Coghlan2015-05-231-9/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Known limitations of the current implementation: - documentation changes are incomplete - there's a reference leak I haven't tracked down yet The leak is most visible by running: ./python -m test -R3:3 test_importlib However, you can also see it by running: ./python -X showrefcount Importing the array or _testmultiphase modules, and then deleting them from both sys.modules and the local namespace shows significant increases in the total number of active references each cycle. By contrast, with _testcapi (which continues to use single-phase initialisation) the global refcounts stabilise after a couple of cycles.
* | Issue #23086: Add start and stop arguments to the Sequence.index() mixin method.Raymond Hettinger2015-05-231-0/+14
| |
* | Issue 24230: The tempfile module now accepts bytes for prefix, suffix and dirGregory P. Smith2015-05-221-2/+35
| | | | | | | | parameters and returns bytes in such situations (matching the os module APIs).
* | Issue 20438: Add a note about deprecating old inspect APIs to whatsnew.Yury Selivanov2015-05-221-2/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, deprecate formatargspec, formatargvalues, and getargvalues functions. Since we are deprecating 'getfullargspec' function in 3.5 (documentation only, no DeprecationWarning), it makes sense to also deprecate functions designed to be directly used with it. In 3.6 we will remove 'getargsspec' function (was deprecated since Python 3.0), and start raising DeprecationWarnings in other 'getarg*' family of functions. We can remove them in 3.7 or later. Also, it is worth noting, that Signature API does not provide 100% of functionality that deprecated APIs have. It is important to do a soft deprecation of outdated APIs in 3.5 to gather users feedback, and improve Signature object.
* | Preliminary typing.py, anticipating provisional acceptance of PEP 484.Guido van Rossum2015-05-221-0/+15
| | | | | | | | | | | | | | | | | | | | | | There area bunch of TODOs here, but the biggest (not mentioned in the file) is that I'm going to take out __instancecheck__ and __subclasscheck__. However my personal schedule is such that I probably won't have time for these before Larry tags beta 1. But I will try -- this commit is mostly to make sure that typing.py doesn't completely miss the train. PS. I'm tracking issues at https://github.com/ambv/typehinting/issues.
* | Issue 20438: Deprecate inspect.getargspec() and friends.Yury Selivanov2015-05-221-6/+7
| |
* | Issue 24180: Fixes by Berker Peksag.Yury Selivanov2015-05-212-8/+5
| |
* | Issue 24180: Documentation for PEP 492 changes.Yury Selivanov2015-05-214-3/+105
| |
* | Issue 20691: Add follow_wrapped arg to inspect.signature/from_callable.Yury Selivanov2015-05-201-4/+10
| |
* | #19662: fix typoR David Murray2015-05-191-1/+1
| |