When I need classes?

Bernardo Sulzbach mafagafogigante at gmail.com
Sun Jan 10 12:48:53 EST 2016


Essentially, classes (as modules) are used mainly for organizational purposes.

Although you can solve any problem you would solve using classes
without classes, solutions to some big problems may be cheaper and
more feasible using classes.

If Python is your everyday scripting tool, you will usually not need
classes, they will add more complexity than you need and passing data
between functions may be done with well-documented tuples and
dictionaries.



More information about the Python-list mailing list