[Python-Dev] Is static typing still optional?

Ivan Levkivskyi levkivskyi at gmail.com
Sun Dec 10 16:29:49 EST 2017


On 10 December 2017 at 22:24, Raymond Hettinger <raymond.hettinger at gmail.com
> wrote:

> Without typing (only the first currently works):
>
>     Point = namedtuple('Point', ['x', 'y', 'z'])          # underlying
> store is a tuple
>     Point = make_dataclass('Point', ['x', 'y', 'z'])      # underlying
> store is an instance dict
>
>
Hm, I think this is a bug in implementation. The second form should also
work.

--
Ivan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20171210/498a90db/attachment.html>


More information about the Python-Dev mailing list