|
|
Subscribe / Log in / New account

Python data classes

Python data classes

Posted Nov 30, 2017 3:35 UTC (Thu) by flewellyn (subscriber, #5047)
Parent article: Python data classes

This is very cool. I wonder if the attrs library will incorporate this, so as to avoid duplication?


to post comments

Python data classes

Posted Nov 30, 2017 12:29 UTC (Thu) by craniumslows (guest, #114021) [Link]

I would expect the internal class methods to get updated to use this new library while leaving the publicly used methods the same. This would give a seamless user experience while simplifying the code base. That's how I would interpret it anyway. It's pretty neat either way.

Python data classes

Posted Nov 30, 2017 15:13 UTC (Thu) by hynek (subscriber, #55397) [Link] (1 responses)

If by “this” you mean type annotations, I have good news: http://www.attrs.org/en/stable/examples.html#types

Python data classes

Posted Dec 2, 2017 10:36 UTC (Sat) by flewellyn (subscriber, #5047) [Link]

Very cool! But I actually meant "Dataclasses in general" by "this".


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds