Open Mityuha opened 2 years ago
Now it's possible to assign any attribute to cake
from bakery import Cake cake = Cake(1) cake.is_one = True print(cake.is_one) # True
And if object within cake has attribute with the same name it can lead to errors. (maybe use __slots__ for all library classes?)
__slots__
Now it's possible to assign any attribute to cake
And if object within cake has attribute with the same name it can lead to errors. (maybe use
__slots__
for all library classes?)