Michael Hudson's metaclass based Autoreloader. Don't try to understand this - your brain may explode.
Via Python owns us.
Update 4th November: It's a Cookbook entry now, updated and with discussion.
Posted to Python by Simon Brunning at October 30, 2002 02:59 PM