2010-07-12

Pickling a function defined interactively in Ipython doesn't work

Ipython's __main__ module is a "FakeModule" the ipython developers created to fix some bugs early in the otherwise very very useful package. So don't be scared if your user-defined top level (__main__) functions can't be pickled in ipython, the code will work when pickling other top lever module functions, only not the ones in __main__ defined interactively. OR simpy use the plain old python interactive console from command line.

Source: http://mail.scipy.org/pipermail/ipython-user/2008-October/005920.html

No comments:

Post a Comment

Simple server load test with cron and ab (Linux)

Load testing "refers to the practice of modeling the expected usage of a software program by simulating multiple users accessing the p...