filmov
tv
Python actually DOES have private attributes (sort of)

Показать описание
This definitely has to be one of the weirder parts of Python.
0:00 - Intro
0:50 - What are these "private attributes" (and methods)?
4:02 - Throw people off a little more by overloading __dir__
6:10 - Are they statically type-safe?
6:38 - Preventing name collisions
8:19 - How you *should* define "private" attributes
8:30 - Using properties as getters and setters
9:49 - Outro
—
If you enjoy my content, consider supporting me on Patreon or becoming a member!
If you need help with anything, feel free to join the Discord server:
I get a lot of people asking, so here's my Visual Studio Code 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
0:00 - Intro
0:50 - What are these "private attributes" (and methods)?
4:02 - Throw people off a little more by overloading __dir__
6:10 - Are they statically type-safe?
6:38 - Preventing name collisions
8:19 - How you *should* define "private" attributes
8:30 - Using properties as getters and setters
9:49 - Outro
—
If you enjoy my content, consider supporting me on Patreon or becoming a member!
If you need help with anything, feel free to join the Discord server:
I get a lot of people asking, so here's my Visual Studio Code 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
Why Python has no REAL private methods! #shorts
Every Python dev falls for this (name mangling)
You should learn THIS programming language after Python!
What's the meaning of underscores (_ & __) in Python variable names?
5/6 OOP & Classes in Python: Private Variables and Name Mangling
What Can You Do with Python? - The 3 Main Applications
Python Interactive mode is really helpful!
LlamaOCR - Building your Own Private OCR System
Huey Background Worker - Building SaaS #207
6 ways '_' can be used in Python
Do You Really Need That Instance Variable? // Python Tips
OOP Class Inheritance and Private Class Members - Python for Beginners!
Public, Private and Protected Methods and Attributes in Python OOP
Break RSA Encryption in 10 Lines of Python Code | #Shorts Quantum Computing with Shor's Algorit...
How Much A Python Developer Earn ? | Python Developer Salary In India #Shorts #simplilearn
Classes & Objects Python Tutorial #6 - Private and Public Classes
ALL Python Programmers Should Know This!! #python #programming #coding
C vs Python Speed Test #cpp #python #programming #code
5 IMPRESSIVE Python Resume Projects (You Can Finish in A Weekend)
How to Make Money With Python Programming in 2022
Python Classes (Private Attributes and Methods)
How to create graphics using Python turtle 🐍🐢 #coding
How to use the ChatGPT API with Python!!
3 PYTHON AUTOMATION PROJECTS FOR BEGINNERS
Комментарии