Re: Pickle file and send via socket

2012-08-08 Thread S.B
On Wednesday, August 8, 2012 3:48:43 PM UTC+3, lipska the kat wrote: > On 06/08/12 14:32, S.B wrote: > > > Hello friends > > > > > > Does anyone know if it's possible to pickle and un-pickle a file across a > > network socket. i.e: > > > First

Re: Pickle file and send via socket

2012-08-07 Thread S.B
On Monday, August 6, 2012 4:32:13 PM UTC+3, S.B wrote: > Hello friends > > > > Does anyone know if it's possible to pickle and un-pickle a file across a > network socket. i.e: > > First host pickles a file object and writes the pickled file object to a >

Pickle file and send via socket

2012-08-06 Thread S.B
Hello friends Does anyone know if it's possible to pickle and un-pickle a file across a network socket. i.e: First host pickles a file object and writes the pickled file object to a client socket. Second host reads the pickled file object from the server socket and un-pickles it. Can anyone p

finding a regular expression in a file

2012-04-24 Thread S.B
Hello friends. Newb question here. I'm trying to find an efficient way to "grep" a file with python. The problem is that all the solutions I find on the web read a line at a time from the file with a "for line in" loop and check each line for the RE instead of sweeping through the entire file. T