[Python-ideas] Generics Syntax
Ivan Levkivskyi
levkivskyi at gmail.com
Thu Sep 15 05:53:54 EDT 2016
On 15 September 2016 at 11:46, אלעזר <elazarg at gmail.com> wrote:
> And that thread is only about variance. What about the generic syntax?
>
If you mean code like this:
class Container[+T]:
@abstractmethod
def __contains__(self, x: T) -> bool: ...
then there is little chance that this will be accepted because it requires
changes to Python syntax.
You have how much friction PEP 526 caused, here it will be even more.
> On Thu, Sep 15, 2016 at 12:44 PM אלעזר <elazarg at gmail.com> wrote:
>
>> Does that mean that if I did, it would be reconsidered?
>>
>
Maybe, Guido will decide on this.
--
Ivan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160915/464a5380/attachment-0001.html>
More information about the Python-ideas
mailing list