Assuming the code is correct, my measure of acceptable Python brevity is:
1) Let one of your peers look at it, and see if he/she can figure out how it works (in less than a day).
2) Imagine yourself looking at it after a few months and still know what it does.
Lastly, you can play innocent, put the code on the forum, and ask how it works. If nobody answers, you exceeded the brevity limit!
DaWei, may you be smitten with Python desire real good!
__________________
I looked it up on the Intergnats!
Last edited by Dietrich; May 23rd, 2006 at 12:16 PM.
|