No. It wasn't on whim.

We have one ball python that has had her sex determined by a vet, and one ball python that has not. We wanted to breed them both for a very long time because they seem to have striking features. We decided to "pop" the unsexed one, and found out he's indeed a male. So we introduced them on and off, and let them be around each other for a while here and there, and saw they were very docile and gentle to one another, then decided to let them spend a bit of time together in the females tank. They got very comfortable, and fell asleep together in her hide.

We woke up the next morning and they were mating.

So no, it wasn't on whim, it's something we wanted to do for a very long time.

Also, the female is about 5 years old, and the male is almost three.