What is the Point of a Pintle?

When Medieval Penises become Modern Window-Latches