Комментарии:
What editor did you use for Python?
ОтветитьThat tidbit about "variables with default values must come after the ones without them", just explained a big problem I was having. Thank you!
Ответитьbob job nice
ОтветитьIs it better to use that for data or some dict? For example, It seem that I won't be able to get "keywords".
Also, there's a difference between _slots_ and slots=True, which is that you can use default value with the new method.
'banana.calories = 69, i mean, 60' 😂
ОтветитьDon't forget the dataclasses.Field object...can be very useful when dealing with telemetry.
There's also the "astuple" method that is attached to the class.
Do u have a course… or mentoring program
ОтветитьYoung, energetic python developer
ОтветитьWhy are you teaching people how to use me?
ОтветитьCool. Thanks!
ОтветитьYou could have used two asterix operators to insert json in your person class
'bob = Person(**json)'
Nice! Named tuple vs dataclass for the next video?
Ответить5th
ОтветитьI'm learning python... bob= Person(**json) is better?
ОтветитьThank you. Very clear like your udemy couse ;)
ОтветитьThank you :>
Ответить