I've watched a lot of dataclass videos, yours makes a lot of sense, but covers the same as everyone else. Can you do a more advanced one... maybe on how to interact with the dataclass... access specific object and update the information. No one has a video showing something that takes input from an api request or user input, then manipulates the data, and shows an output.
Why in the first part did you define (or did you define...?) static variables with the same names as the class's instance variables? I thought if you assign variables to an object inside the constructor that you don't need to declare them outside it, and if you define them outside the constructor that they're shared across all instances...? Is what you wrote a special notation? Why didn't those variables need to be assigned? Are they assigned to None or something just by declaring them like that?
🔴- If you enjoyed this video please Like, Comment and Subscribe for more :)
Very useful information. Did not know about these at all!
Game changer right :)
I know! Exactly!
I've watched a lot of dataclass videos, yours makes a lot of sense, but covers the same as everyone else. Can you do a more advanced one... maybe on how to interact with the dataclass... access specific object and update the information. No one has a video showing something that takes input from an api request or user input, then manipulates the data, and shows an output.
Thanks for the comment. I have other API videos relating to FastAPI and Django where I make heavy use of data classes
Thanks
More than welcome
Why in the first part did you define (or did you define...?) static variables with the same names as the class's instance variables? I thought if you assign variables to an object inside the constructor that you don't need to declare them outside it, and if you define them outside the constructor that they're shared across all instances...? Is what you wrote a special notation? Why didn't those variables need to be assigned? Are they assigned to None or something just by declaring them like that?