Abstain when whipped? Party gives punishment! (9)
I believe the answer is:
bastinado
'punishment' is the definition.
(I've seen this before)
'abstain when whipped? party' is the wordplay.
I cannot really understand how this works, but
an anagram of 'abstain' is 'bastina' which is located in the answer.
'party' could be 'do' (do is a kind of party) and 'do' is present in the answer.
This accounts for all the letters.
This may be the basis of clue (or it may be nonsense).
'gives' acts as a link.
Can you help me to learn more?
(Other definitions for bastinado that I've seen before include "Torture by caning soles of feet" , "Punishment beating on the soles of the feet" , "Punishment by caning soles" .)