07:31Why I prefer attrs over dataclasses
From the creator
Better Python dataclasses! Attrs is the original dataclass library. Literally, the standard library "dataclasses" module was based off of attrs. They are very similar in their main functionality, but I personally find attrs to be more and more preferred. ― mCoding with James Murphy (https://mcoding.io) Source code: https://github.com/mCodingLLC/VideosSampleCode Dataclasses: https://docs.python.org/3/library/dataclasses.html Attrs: https://www.attrs.org/en/stable/ SUPPORT ME ⭐ --------------------------------------------------- Sign up on Patreon to get your donor role and early access to videos! https://patreon.com/mCoding Feeling generous but don't have a Patreon? Donate via PayPal! (No sign up needed.) https://www.paypal.com/donate/?hosted_button_id=VJY5SLZ8BJHEE Want to donate crypto? Check out the rest of my supported donations on my website! https://mcoding.io/donate Top patrons and donors: Jameson, Laura M, Dragos C, Vahnekie, Neel R, Matt R, Johan A, Casey G, Mark M, Mutual Information, Pi BE ACTIVE IN MY COMMUNITY 😄 --------------------------------------------------- Discord: https://discord.gg/Ye9yJtZQuN Github: https://github.com/mCodingLLC/ Reddit: https://www.reddit.com/r/mCoding/ Facebook: https://www.facebook.com/james.mcoding CHAPTERS --------------------------------------------------- 0:00 Intro 0:20 Dataclass-like tools 2:38 Why attrs over dataclasses? 3:06 Better defaults 4:19 Independent versioning 5:08 Features
Published 2023-07-03 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.





