I’m not sure how to assign a slot to a variable in an Alexa skill. I’ve found several tutorials, but most of them are in JS (I wrote this code in Python) or outdated, since even using them precisely as presented does not work. Alexa is meant to ask for one of my kids’ names so I can implement a
Tag: slots
Do attribute names consume memory on instance basis in python
Considering I have millions of objects with 3 __slots__ Is it more memory efficient to have short slot names like x vs. long like would_you_like_fries_with_that_cheeseburger? Or are the names allocated only once per class (opposed to once per instance?) Answer Names for slots only take memory per class, not per instance. Slots use descriptors that map directly into the memory