It depends on the psychological context in which punishment is being studied. For instance, there is a body of literature relating to punishment within learning theory and behavioural psychology. Punishment is also a topic that has been examined within social psychology.
See following links for a discussion on punishment in both these areas of psychological enquiry.