baffling bug in this bit of code!
Max M
maxm at mxm.dk
Wed Jul 3 09:40:55 EDT 2002
Daniel Jaeggi wrote:
> # find maximum dimension
> max_x = 0
> max_y = 0
> for node in self.nodes.keys():
> # first x
> x = self.nodes[node].location.x
> print "for node",node,"x is",x
> print "max_x = ",max_x
> if (x > max_x):
> print "updating max_x"
> max_x = x
> # then y
> y = self.nodes[node].location.y
> print "for node",node,"y is",y
> print "max_y = ",y
Also here above you probably mean::
print "max_y = ",max_y
> if (y > max_y):
> print "updating max_y"
> max_y = y
> # and print this out for now
> print "Max x dim is",max_x
> print "Max y dim is",max_y
regards Max M
More information about the Python-list
mailing list