🤨 Two Drawbacks of Using Slots in Python

preview_player
Показать описание
There are a few things you should be aware of when using slots. In this short, I’ll share with you their main disadvantages.

🎓 Courses:

Social channels:

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

Check out my channel links for a free code diagnosis workshop or my free design guide! 🔥

ArjanCodes
Автор

Is it wrong to assume that using slots is like using java-like objects, whereas not using slots is like using javascript-like objects?

rikschaaf
Автор

Viewers of this channel should learn Python rather than constantly trying to draw analogies to other languages/libraries.

joshuaseaton
Автор

I thought slots _enabled_ python to optimize your classes with fixed instances (as is standard for OOP), not the other way around? I don't see how fixing instances would be a drawback at Python's level, and at the coding level it only adds a minor amount of extra typing to revise your instances as needed. Am I missing something? Lol

rickyhineman