Re: [Tutor] subprocess help, nohup

2007-11-18 Thread Martin Walsh
John wrote: > Hello, Hi John, I didn't see a response to your question, so I'll make an attempt ... > > I've written a script which conducts several subprocess calls and then > ultimately calls a shell script which runs even more programs... my > script is using subprocess to execute a few sed

Re: [Tutor] Read-ahead for large fixed-width binary files?

2007-11-18 Thread Kent Johnson
Marc Tompkins wrote: > though - I think I need to do > > if len(buf) < recLen: > return > > rather than > > if not buf: > return > > I'll have to experiment again to refresh my memory, but I believe I > tried that in one of my first iterations (about a yea

Re: [Tutor] Read-ahead for large fixed-width binary files?

2007-11-18 Thread Marc Tompkins
On Nov 18, 2007 5:15 AM, Kent Johnson <[EMAIL PROTECTED]> wrote: > Marc Tompkins wrote: > > On Nov 17, 2007 8:20 PM, Kent Johnson <[EMAIL PROTECTED] > > > wrote: > > use plain slicing to return the individual records instead of > StringIO. > > > > I hope I'm not being

[Tutor] Installing modules via setuptools in a script

2007-11-18 Thread Thorsten Kampe
Hi, can anyone give me a short code snippet how to install a missing module via setuptools (assuming setuptools is already installed)?! Something like this: try: import missing_module except import_error import setuptools setuptools.whatever.install(missing_module) Thorsten __

Re: [Tutor] Read-ahead for large fixed-width binary files?

2007-11-18 Thread Kent Johnson
Marc Tompkins wrote: > On Nov 17, 2007 8:20 PM, Kent Johnson <[EMAIL PROTECTED] > > wrote: > use plain slicing to return the individual records instead of StringIO. > > I hope I'm not being obtuse, but could you clarify that? I think it will simplify the looping. A

Re: [Tutor] Read-ahead for large fixed-width binary files?

2007-11-18 Thread Kent Johnson
Marc Tompkins wrote: > On Nov 17, 2007 8:14 PM, Kent Johnson <[EMAIL PROTECTED] > > wrote: > Have you tried specifying a buffer size in the open() call? > > Yes. > I compared: > - no buffer size specified > - any of a wide range of positive numbers (from 1 to 4M)

Re: [Tutor] [wxPython-users] How to save file name of file openedfromwx.FileDialog ?

2007-11-18 Thread Alan Gauld
"Varsha Purohit" <[EMAIL PROTECTED]> wrote I note that you got it wotking but just to clarify... >I am actually calling the binding function and then writing it > into the text value... > class ScrolledWindow(wx.Frame): >def __init__(self, parent, id, title): >txt1 = wx.TextCtr