Intermediate Python - Dataclasses

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 พ.ย. 2024

ความคิดเห็น • 9

  • @iamrithmic
    @iamrithmic  2 ปีที่แล้ว +2

    🔴- If you enjoyed this video please Like, Comment and Subscribe for more :)

  • @farzadmf
    @farzadmf 2 ปีที่แล้ว +2

    Very useful information. Did not know about these at all!

    • @iamrithmic
      @iamrithmic  2 ปีที่แล้ว +2

      Game changer right :)

    • @farzadmf
      @farzadmf 2 ปีที่แล้ว +1

      I know! Exactly!

  • @theo1311
    @theo1311 2 ปีที่แล้ว +1

    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.

    • @iamrithmic
      @iamrithmic  2 ปีที่แล้ว

      Thanks for the comment. I have other API videos relating to FastAPI and Django where I make heavy use of data classes

  • @user-hr8iz9lb3g
    @user-hr8iz9lb3g 2 ปีที่แล้ว +2

    Thanks

    • @iamrithmic
      @iamrithmic  2 ปีที่แล้ว +1

      More than welcome

  • @WeirdAlSuperFan
    @WeirdAlSuperFan ปีที่แล้ว

    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?