While such incidents are rare, certain snake species are indeed capable of preying on humans under unusual circumstances ...
The African rock python ... Their ability to eat large prey items is facilitated by their highly flexible jaws, which can expand to swallow prey much larger than the python's head.
In 2002, headlines were made when a 10-year-old boy in Durban, South Africa was killed and swallowed by an African rock python. It was the first recorded “man-eating” incident for this species.
The African Rock ... eat rodents and there are enough rodents in the forest," adding that in the ten years he has been at Karura Forest, he has never witnessed a person being attacked by a python ...