GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • [ date ]
  • [ thread ]
  • [ subject ]
  • [ author ]

This view

  • Original page
  • New address

GeezerVison is showing mail.python.org — [Python-Dev] Accepting PEP 560 -- Core support for typing module and generic types

[Python-Dev] Accepting PEP 560 -- Core support for typing module and generic types

Ivan Levkivskyi levkivskyi at gmail.com
Fri Dec 15 10:10:53 EST 2017

  • Previous message (by thread): [Python-Dev] Accepting PEP 560 -- Core support for typing module and generic types
  • Next message (by thread): [Python-Dev] Accepting PEP 560 -- Core support for typing module and generic types
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

On 15 December 2017 at 15:55, Yury Selivanov <yselivanov.ml at gmail.com>
wrote:

> > I don't see any problems with implementing this on types defined in C.
> This isn't harder than implementing __sizeof__ or pickling support, and
> NumPy classes already have implemented both. Maybe Yury forgot about
> METH_STATIC and METH_CLASS?
>
> I just tested __class_getitem__ defined via METH_STATIC and it works.
> This means we don't need to add slots.  Thanks for the hint, Serhiy!
>
> Ivan, this might be worth mentioning in the PEP or in the docs.


I think it should be added to the PEP. Somehow I didn't think about C
extensions, but now I see that it is important, also recently there
appeared a lot of interest in better support of static typing for NumPy
arrays and numeric stack.
I will make a PR a bit later.

--
Ivan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20171215/5a8375a7/attachment.html>

  • Previous message (by thread): [Python-Dev] Accepting PEP 560 -- Core support for typing module and generic types
  • Next message (by thread): [Python-Dev] Accepting PEP 560 -- Core support for typing module and generic types
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

More information about the Python-Dev mailing list
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.