Re: Write binary data to standard error?

2009-08-12 Thread Saptarshi
On Aug 12, 10:32 pm, sapsi wrote: > Hello, > This is probably a basic question, but how does one write binary data > to standard error e.g int as network order (4 bytes)? > > Much thanks > Saptarshi Solved: import sys import os from struct import * d=os.fdopen(sys.stderr.file

Re: Passing all extra commandline arguments to python program, Optparse raises exception

2009-04-16 Thread Saptarshi
> > Saptarshi > > Preprocess the sys.args before calling optparse. > Simply search sys.args for the string "start" and the string "stop", and > note whichever comes first.  Then use slice operators to peel the extra > arguments off of sys.args. Thanks,

Name of the calling method

2006-04-08 Thread Saptarshi Guha
Hello, Say Boo is a class with a method called x. In the body of x i wish to know from which method x was called. How would i do this? Thanks in advance Saptarshi -- http://mail.python.org/mailman/listinfo/python-list