I have just run into a problem. It is a simple problem that can easily be
solved. But in solving it I thought this can be done prettier. So now I am
applying to you for the prettiest solution.
The problem is the following:
I want to move an item in a list in some range [0..margin>. The item
currently is at position shift. So I want to test every option in [0..margin>
but testing porition shift is useless. So I want ot iterate over the set
[0..margin>\shift.
I have the feeling this could be solved in python in a neat way. But the best
I could come up with is:
a=range(margin)
a.remove(shift)
for i in a:
.......
Has anyone any ideas?
Paul
_______________
Paul Sijben | "Be careful where you aim,
internet:sijben@pegasus.esprit.ec.org | 'cause where you aim you
telephone +31-53-893735 (at work) | just might hit"
University of Twente computer science dep| U2, Dirty day