Now, we can't be sure that infants or very young children have never been eaten by giant snakes--surely they have.
It's also been shown that the reticulated python, at least, is perfectly capable of swallowing a human being, provided it constricted the person in the right position to begin with. They're so strong that they would break the bones in the shoulders, so that the width wouldn't be an issue anymore. It's more than possible that it's happened, and retics HAVE been verifiably caught in the process of TRYING to swallow people. So it's easy to imagine that one may have finished the job on an occasion or two.
It's an unlikely scenario, but there's no sense in pretending it's impossible. They are large, powerful, and certainly dangerous if not handled properly.
There's no particular reason to single out the African rock python over the Burm in that scenario, though.