Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Then improve your class by giving it a __str__ method that prints your class in a better way than what happened above. You will need to use format characters like %s. At the end of the script, print the list of DataLine objects - they should look better now.

Finally, add a __cmp__ method to your class that compares two objects. Objects should be compared based on the fifth number in the list. Then, before you print your list, sort it. When you print it, make sure the fifth number in each object gets bigger.

...