A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2015-April/139580.html below:

[Python-Dev] PEP 492: async/await in Python; v3

[Python-Dev] PEP 492: async/await in Python; v3Yury Selivanov yselivanov.ml at gmail.com
Tue Apr 28 17:36:35 CEST 2015
Ethan,

On 2015-04-28 11:29 AM, Ethan Furman wrote:
> On 04/28, Yury Selivanov wrote:
>> On 2015-04-28 1:43 AM, Stefan Behnel wrote:
>>> Should a Generator then inherit from both Iterator and Coroutine, or would
>>> that counter your intention to separate coroutines from generators as a
>>> concept? I mean, they do share the same interface ...
>> Them sharing the same interface depends on how the discussion goes
>> :)  But all in all, I think that it should be totally separate
>> classes, even if they share some methods.
> For those of us who like to meddle, would it be possible to create an object
> that supports __iter__, __next__, __aiter__, and __anext__?
>

Sure, there is nothing that could prevent you from doing that.

Thanks,
Yury
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4