[Python-talk] Modules force recompilation?

bruce.labitt at autoliv.com bruce.labitt at autoliv.com
Thu Feb 4 17:43:14 EST 2010


I have created a couple modules(?) that have functions in them.  They are 
spread across a couple of files.

One thing that I don't know how to do gracefully, is to force a recompile 
of a module to bytecode once I have editted the source file.

How is this done in python?

I mean the only thing that I know that works for sure is
Edit file2.py
1. Bail out of ipython
2. Manually delete file2.pyc
3. Launch ipython
4. Run main.py

Naturally, this is a relatively slow and annoying process...
Is there a better way?


I am debugging an ESPRIT algorithm...
"Estimation of Signal Parameters via Rotational Invariance Techniques"

Once you get your head into the math, it isn't too bad.  The exception 
processing is a bit painful, however.  It is amazing how many ways can go 
wrong !

For the most part I do most of my work in python now.  Python is very 
powerful.  For the "MATLAB" like parts of the code I just use Numpy and 
SciPy.  I can do stuff in python that I can't even imagine in matlab. 

Guess I've turned into a booster.

Bruce


******************************
Neither the footer nor anything else in this E-mail is intended to or constitutes an <br>electronic signature and/or legally binding agreement in the absence of an <br>express statement or Autoliv policy and/or procedure to the contrary.<br>This E-mail and any attachments hereto are Autoliv property and may contain legally <br>privileged, confidential and/or proprietary information.<br>The recipient of this E-mail is prohibited from distributing, copying, forwarding or in any way <br>disseminating any material contained within this E-mail without prior written <br>permission from the author. If you receive this E-mail in error, please <br>immediately notify the author and delete this E-mail.  Autoliv disclaims all <br>responsibility and liability for the consequences of any person who fails to <br>abide by the terms herein. <br>
******************************


More information about the Python-talk mailing list