unfortunatelyas you can seeit' not possible to set any attributes on an object that was instantiated directly this isn' because the python developers wanted to force us to write our own classesor anything so sinister they did this to save memorya lot of memory when python allows an object to have arbitrary attributesit takes certain amount of system memory to keep track of what attributes each object hasfor storing both the attribute name and its value even if no attributes are storedmemory is allocated for potential new attributes given the dozenshundredsor thousands of objects (every class extends objectin typical python programthis small amount of memory would quickly become large amount of memory sopython disables arbitrary properties on objectand several other built-insby default it is possible to restrict arbitrary properties on our own classes using slots slots are beyond the scope of this bookbut you now have search term if you are looking for more information in normal usethere isn' much benefit to using slotsbut if you're writing an object that will be duplicated thousands of times throughout the systemthey can help save memoryjust as they do for object it ishowevertrivial to create an empty object class of our ownwe saw it in our earliest exampleclass myobjectpass andas we've already seenit' possible to set attributes on such classesm myobject( "hellom 'helloif we wanted to group properties togetherwe could store them in an empty object like this but we are usually better off using other built-ins designed for storing data it has been stressed throughout this book that classes and objects should only be used when you want to specify both data and behaviors the main reason to write an empty class is to quickly block something outknowing we'll come back later to add behavior it is much easier to adapt behaviors to class than it is to replace data structure with an object and change all references to it thereforeit is important to decide from the outset if the data is just dataor if it is an object in disguise once that design decision is madethe rest of the design naturally falls into place