File existence check with partial filename

2010-03-14 Thread Sang-Ho Yun
I learned that I can check the existence of a file using
os.path.isfile("filename").

What if I need to check if there is a file that contains "HV" in the
filename?  What should I do?

Thank you,
Sang-Ho

-- 
http://mail.python.org/mailman/listinfo/python-list


Save/load like matlab?

2010-08-23 Thread Sang-Ho Yun
I wonder if there is a way to save and load all python variables just like
matlab does, so I can build a code step by step by loading previous states.

I am handling a python processing code for very large files and multiple
processing steps. Each time I find a bug, I have to run the whole thing
again, which is time consuming.

Thank you,
Sang-Ho 

-- 
http://mail.python.org/mailman/listinfo/python-list