It should be pointed out that there are many ways to interpret the prohibitions against Pandikas:
"A type of person called a pandaka is occasionally mentioned in the Vinaya in contexts that make it clear that such a person is some kind of sexual non-conformist. The Vinaya also stipulates that pandakas are not allowed to be ordained, and if, inadvertently, one has been, he is expelled. According to commentary, this is because pandakas are "full of passions, unquenchable lust and are dominated by the desire for sex." The word pandaka has been translated as either hermaphrodite or eunuch, while Zwilling has recently suggested that it may simply mean a homosexual. It is more probable that ancient Indians, like most modern Asians, considered only the extremely effeminate, exhibitionist homosexual (the screaming queen in popular perception) to be deviant while the less obvious homosexual was simply considered a little more opportunistic or a little less fussy than other 'normal' males. As the Buddha seems to have had a profound understanding of human nature and have been remarkably free from prejudice, and as there is not evidence that homosexuals are any more libidinous or that they have any more difficulties in maintaining celibacy than heterosexuals, it seems unlikely that the Buddha would exclude homosexuals per se from the monastic life. The term pandaka therefore probably does not refer to homosexuals in general but rather to the effeminate, self-advertising and promiscuous homosexual."
Gain and loss, status and disgrace,
censure and praise, pleasure and pain:
these conditions among human beings are inconstant,
impermanent, subject to change.
Knowing this, the wise person, mindful,
ponders these changing conditions.
Desirable things don’t charm the mind,
undesirable ones bring no resistance.
His welcoming and rebelling are scattered,
gone to their end,
do not exist.
- Lokavipatti Sutta