A Thai man is recovering in hospital after an encounter with a 3-meter python that made its way through the plumbing of his home and latched onto his Private parts as he was using a squat toilet.

Attaporn Boonmakchuay said the snake was "yanking very hard" as he tried to remove it, according to the Bangkok Post. "I felt as though my penis had been severed," he added.

Mr Boonmakchuay lost a lot of blood during the ordeal, but doctors said he would recover - and the 38-year-old was pictured smiling as Thai television stations interviewed him in his hospital bed.

Photos of his blood-splattered bathroom in Chachoengsao province, east of Bangkok, were testimony to his ordeal.

Mr Boonmakchuay told Thai TV Channel 7 that he struggled to remove the snake for 30 minutes Wednesday before he managed to free himself with help from his wife and a neighbor. After his wife tied a rope around the snake, he managed to pry open its jaws before passing out.

Emergency workers dismantled the Asian-style squat toilet, with the python still twined through it. The snake was taken away to be released back into the wild, according to an emergency responder cited by the newspaper Thai Rath.