All pastes #132299 Raw Edit

Python eww!?

public python v1 · immutable
#132299 ·published 2006-08-15 07:08 UTC
rendered paste body
				if len(Avatar_List) > 1:					try:						for i,avatar in enumerate(Avatar_List):							if i != pId: # Make sure this is not the came client								(cx,cy,cz) = avatar.position.getPosition()								(rx,ry,rz) = Avatar_List[pId].position.getPosition()								(dx,dy,dz) = (rx-cx,ry-cy,rz-cz)								# If they are within the radius								if dx < Client_Radius and dy < Client_Radius and dz < Client_Radius:									# Send an Update to the current avatar in this loop to									# update the sender's position									print "Update this Client!"					except TypeError, msg:						print Avatar_List, type(Avatar_List), msg[<Avatar.Avatar instance at 0xf6d6aaec>, <Avatar.Avatar instance at 0xf6d6a7cc>] <type 'list'> enumerate() takes no arguments (1 given)