Re: [Python-ideas] PEP 560 (second post)

2017-09-27 Thread Ivan Levkivskyi
On 27 September 2017 at 18:08, Terry Reedy wrote: > On 9/27/2017 5:28 AM, Ivan Levkivskyi wrote: > > It is proposed to add two special methods ``__class_getitem__`` and >> ``__subclass_base__`` to the core CPython for better support of >> generic types. >> > > I would not be

Re: [Python-ideas] PEP 560 (second post)

2017-09-27 Thread Terry Reedy
On 9/27/2017 5:28 AM, Ivan Levkivskyi wrote: Abstract Initially PEP 484 was designed in such way that it would not introduce *any* changes to the core CPython interpreter. Now type hints and the ``typing`` module are extensively used by the community, e.g. PEP 526 and PEP 557 extend

[Python-ideas] PEP 560 (second post)

2017-09-27 Thread Ivan Levkivskyi
Previously I posted PEP 560 two weeks ago, while several other PEPs were also posted, so it didn't get much of attention. Here I post the PEP 560 again, now including the full text for convenience of commenting. -- Ivan PEP: