brtzsnr at gmail.com
Thu Aug 14 22:02:41 CEST 2008
On Aug 12, 7:46 pm, "Calvin Spealman" <ironfro... at gmail.com> wrote:
> The best answer is: Don't do that!
> That isn't how you test things. Write test scripts, probably using the
> unittest framework. You'll save yourself time and trouble having
> easily reproducible tests. Many people suggested reload(), but you
> should know it is dangerous. It can have results you don't expect and
> are hard to track down. Unless you really, really know what you're
> doing: dont use it.
=)) I already have unittests for most of my code. I'm using python
interpreter as a shell to start various jobs & stuff. from time to
time it's useful. i came to conclusion that `printf "python code" |
python` was more appropriate for what i needed.
More information about the Python-list