You can also jam the web of your hand in between the hammer and the frame to prevent the pistol from firing.
This could work on anything with an exposed hammer.