Do pythons like sugar?

Mike Meyer mwm at
Thu Jan 9 17:35:13 CET 2003

Afanasiy <abelikov72 at> writes:
> I would rather not have people to tell me how to design basic classes.
> Thanks for the offer. I will surely ask if I need the assistance there.

I don't think anyone wants to tell you how to design basic
classes. We'd just like to point out where you may have missed a trick
because you're not familiar with Python.

For instance, you test for "self.textwidth(self.lines[i]) > 0". Surely
that test can just be "self.lines[i]"? Or are there characters with
zero width?

Mike Meyer <mwm at>
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.

More information about the Python-list mailing list