@pmcgee003

You want a property function that combines them when asked.  The other data can change.

@SuperOblivionfan

Wouldnt the @property decorator be nicer to use? Unless you truly dont want full name to be different when first or last are mutated. But i think a property would be best

@FrozenPear

It's really bad example unless the dataclass is frozen (read only). Now you can change values of first and last but full will always stay the same as when it was initialized.

@noctuss86

I like the jojo ref 😂 👍

@transientaardvark6231

Interesting new information, and illustrated in a very clear way, but as a side point, making fields out of other fields is a real bad violation of data theory. Maybe a better example would be storing a file name and then also storing the opened FILE (ie the thing like a file "handle" in C)

@RamachandraBharadwaj

What is the difference between this and a normal constructor ?

@maleldil1

I'm not sure I'd call it a "trick" since it's very explicitly described in the module documentation.

@roopeshr

Thanks a  lot!

@dipeshsamrawat7957

Full video is also great.💯

@sg8nj

Where can we use this?. Why is it needed?

@tronwai

What font are you using in this IDE?

@vr01t3rh4r

I use pydantic instead

@farorasyid1832

thank you, this is new to me

@iDoComputers

ye i am so brainless i dont even know what a dataclass is

@SergioEanX

Very interesting

@atommax_1676

JoJo reference spotted

@Savukka

I'd like to konw why this is better than regular __init__.

@What-po4de

Voice so good

@yoshikagekira6166

Jojo reference

@sadik_tutorials1

it works for standard _init_ too. I'm an average so that's what I think