The Pali Cannon, prepared in Sri Lanka among 600 BC and one hundred BC, states that sexual relations, whether of homosexual or of heterosexual nature, is forbidden while in the monastic code, and states that any functions of soppy homosexual sexual intercourse (like masturbation and interfumeral sex) does not entail a punishment but need to be conf