If you and your friend are interacting, when he pulls you, he will feel that you apply to him the same force as he applies to you. If both of you are in vacuum and no further forces are present, the change in momentum will be equal for both of you. If further forces like friction are present, then the total forces acting on each of you might differ. But the parts which come due to you two interacting with each other will still be equal.
In the rope example there are two things playing a role and they should be kept apart:
- Each segment of the rope acts toon any of the adjacent segments with the same force as the adjacent segment acts on it. Here we are looking at forces acting on different objects interacting with each other. This is Newton's 3rd law.
- The weight and the rope (and thus each segment of the rope) are in a force equilibrium, so the total force on each segment exercised by both adjacent segments totals to zero. Here we are looking at the forces on one object exercised by all other objects it interacts with.
While the first point is always true, the second one doesn't have to be true, say, if the rope and the weight are in a free fall accelerating towards the earth, rather than in an equilibrium situation. Obviously, there will be no tension force in case that the second point is not given.