I was in the middle of a reasonably complicated interactive python session, and I had a lot of state that I didn't want to have to regenerate. (Normally I wouldn't be doing that -- it's pretty stupid -- but sometimes...)
Instead of numpy.random.seed(42) I typed by accident numpy.random.seed = 42 thus making the numpy.random.seed() function unreachable.
I hoped that import numpy might fix it, but it didn't.
I'm curious to know if there is a general method for recovering from this kind of daft mistake? Or even a specific one?