Skip to content
Prev 12610 / 398502 Next

style question: returning multiple arguments - structure or list

On Fri, 27 Jul 2001, Kevin Murphy wrote:

            
The latter.  There's a third option, to create a new class and return an
object of that class, and write appropriate extractor functions.

If you look in the code base you will see many more uses of lists than
attributes, and heavy use of classes for returned lists.