Where does the “Egyptian” melody originally come from?

I know this melody as the cartoon snakecharmer song. Here’s a kid playing it on bass clarinet: I’ve always wondered where the Egyptian melody came from. It turns out to be hundreds of years of old, and goes by many different names. You can find an excellent capsule history of it in William Benzon’s book …