Rob Vogel wrote: > Thanks Alan, > > The functions do not share variables, I don't use global vars, and I > don't need a new instance. > So in my case the only use of a class would be that all related usb > code will be grouped together, even though I do not need any of the > Class special abilities, as far as I understand.
All good reasons *not* to make a class. A module is a fine way to group related code together. > > I think I will make a usb class to keep it better organised. Grouping the usb code in a module accomplishes all the organization you need, from what you have said. It sounds like putting it in a class just adds needless complexity. > > I have attached the module that contains the usb and related code, to > give a better view of what I'm talking, and I would appreciate any > feedback on it. The attachment didn't make it to the list... Kent _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor