You can access OBJECTS like DICTIONARIES?! #python #coding #howto

preview_player
Показать описание
If you enjoy my content, consider supporting me on Patreon or becoming a member!

Follow me elsewhere for even more Carberra!

I get a lot of people asking, so here's my setup!



If you have any questions, don't hesitate to ask in the comments! I'll try and answer as soon as I can, providing someone else hasn't already done so.

#python #coding #howto
Рекомендации по теме
Комментарии
Автор

Smooth re-entry into the auto-repeat of the video!

richardboreiko
Автор

This is most likely a very bad idea. Using string keys instead of attributes removes the ability of your IDE to check for typos in your code. If you need dynamic key-values, just use a dictionary

yannickmolinghen
Автор

You don’t need -> None because __init__ always returns None. It’s a trivial method. Correct me if I’m wrong

tigerbojiteol
Автор

I don't see why this would be useful

MisterComment
Автор

What is var(job) i didn’t understand this line ?

aracristiano
Автор

Serialise objects with `__dict__` dunder

danielcrompton
Автор

Just because you can doesn't mean you should, this is not a good pattern.

FrozenPear
join shbcf.ru