summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
Commit message (Collapse)AuthorAgeFilesLines
* docs.whatsnew: Update ref to tp_as_asyncYury Selivanov2015-06-231-1/+1
|
* Issue #24400: Introduce a distinct type for 'async def' coroutines.Yury Selivanov2015-06-221-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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")
* Issue #24423: Fix formatting error in 3.5 whatsnewNed Deily2015-06-101-2/+2
|
* Issue 24180: Mention sys.(get|set)_coroutine_wrapper in whatsnewYury Selivanov2015-05-311-0/+6
|
* minor fix of module order in whatsnew/3.5Tal Einat2015-05-311-8/+8
|
* Issue #19543: Implementation of isclose as per PEP 485Tal Einat2015-05-311-0/+21
| | | | | | | | | 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 #24284: The startswith and endswith methods of the str class no longerSerhiy Storchaka2015-05-311-0/+4
| | | | | return True when finding the empty string and the indexes are completely out of range.
* improve section titleBenjamin Peterson2015-05-311-2/+2
|
* Reverting my previous commit.Yury Selivanov2015-05-302-167/+0
| | | | Something went horribly wrong when I was doing `hg rebase`.
* Merge 3.5Yury Selivanov2015-05-302-0/+167
|\
| * docs/whatsnew/3.6: Mention that 'async' and 'await' will be keywords in 3.7Yury Selivanov2015-05-281-0/+8
| |
| * Merge 3.5Yury Selivanov2015-05-281-0/+8
| |\
| * | Add whatsnew for 3.6Yury Selivanov2015-05-282-0/+159
| | |
* | | docs/whatsnew: Mention OrderedDict C implementationYury Selivanov2015-05-301-0/+4
| |/ |/|
* | docs/whatsnew: Mention that 'async' and 'await' will be keywords in 3.7Yury Selivanov2015-05-281-0/+8
|/
* rephraseBenjamin Peterson2015-05-271-7/+7
|
* Fix bad indent in whatsnew/3.5.rst.Guido van Rossum2015-05-231-1/+1
|
* Add pointer to IDLE what's new file.Terry Jan Reedy2015-05-231-0/+9
|
* Merge with 3.4Terry Jan Reedy2015-05-231-1/+1
|\
| * whitespaceTerry Jan Reedy2015-05-231-1/+1
| |
* | Merge with 3.4Terry Jan Reedy2015-05-231-0/+10
|\ \ | |/
| * Add pointer to IDLE what's new file.Terry Jan Reedy2015-05-231-0/+10
| |
* | Fix Sphinx warnings.Berker Peksag2015-05-231-1/+1
| |
* | PEP 489: Multi-phase extension module initializationNick Coghlan2015-05-231-2/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 24230: The tempfile module now accepts bytes for prefix, suffix and dirGregory P. Smith2015-05-221-1/+6
| | | | | | | | 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-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Fix extraneous BOM in whatsnew.Zachary Ware2015-05-221-1/+1
| | | | | | | | That's what I get for using Notepad to make a quick edit...
* | Issue #20035: Reimplement tkinter._fix module as a C function.Zachary Ware2015-05-221-1/+9
| | | | | | | | | | The new private C function makes no permanent changes to the environment and is #ifdef'd out on non-Windows platforms.
* | docs: Mention PEP 479 in whatsnew.Yury Selivanov2015-05-221-0/+21
| | | | | | | | Issue 22906.
* | Issue 24180: Documentation for PEP 492 changes.Yury Selivanov2015-05-211-1/+32
| |
* | improve wordingBenjamin Peterson2015-05-211-2/+2
| |
* | Issue 24248: Deprecate inspect.Signature.from_function and .from_builtinYury Selivanov2015-05-211-0/+5
| |
* | Issue 20691: Add follow_wrapped arg to inspect.signature/from_callable.Yury Selivanov2015-05-201-0/+3
| |
* | Issue #13866: add *quote_via* argument to urlencode.R David Murray2015-05-181-0/+4
| | | | | | | | | | Patch by samwyse, completed by Arnon Yaari, and reviewed by Martin Panter.
* | #24218: Add SMTPUTF8 support to send_message.R David Murray2015-05-171-2/+4
| | | | | | | | Reviewed by Maciej Szulik.
* | #20098: add mangle_from_ policy option.R David Murray2015-05-171-0/+6
| | | | | | | | | | | | | | This defaults to True in the compat32 policy for backward compatibility, but to False for all new policies. Patch by Milan Oberkirch, with a few tweaks.
* | #24211: Add RFC6532 support to the email library.R David Murray2015-05-171-0/+6
| | | | | | | | | | | | | | | | | | This could use more edge case tests, but the basic functionality is tested. (Note that this changeset does not add tailored support for the RFC 6532 message/global MIME type, but the email package generic facilities will handle it.) Reviewed by Maciej Szulik.
* | #21083: add get_content_disposition method to email.message.R David Murray2015-05-161-0/+8
| | | | | | | | Patch by Abhilash Raj.
* | Issue #16314: Added support for the LZMA compression in distutils.Serhiy Storchaka2015-05-161-0/+3
| |
* | #21804: Add RFC 6856 (UTF8) support to poplib.R David Murray2015-05-161-0/+7
| | | | | | | | Patch by Milan Oberkirch.
* | #22027: Add RFC6531 support to smtplib.R David Murray2015-05-161-0/+3
| | | | | | | | Initial patch by Milan Oberkirch.
* | Issue 24190: Add inspect.BoundArguments.apply_defaults() method.Yury Selivanov2015-05-161-0/+3
| |
* | remove extra spaceBenjamin Peterson2015-05-131-2/+2
| |
* | remove % from title, since it makes latex barfBenjamin Peterson2015-05-131-2/+2
| |
* | Issue #1322: platform.dist() and platform.linux_distribution() functions are ↵Berker Peksag2015-05-131-0/+5
| | | | | | | | | | | | now deprecated. Initial patch by Vajrasky Kok.
* | Issue #24064: Property() docstrings are now writeable.Raymond Hettinger2015-05-131-0/+16
| | | | | | | | (Patch by Berker Peksag.)
* | Issue #22681: Added support for the koi8_t encoding.Serhiy Storchaka2015-05-121-0/+3
| |
* | Issue #22682: Added support for the kz1048 encoding.Serhiy Storchaka2015-05-121-0/+3
| |
* | Issue #15027: The UTF-32 encoder is now 3x to 7x faster.Serhiy Storchaka2015-05-121-0/+3
| |
* | doc: Briefly mention C API changes in whatsnew.Yury Selivanov2015-05-121-0/+3
| |