Re: [BangPypers] sending binary files over socket

2010-06-01 Thread Roshan Mathews
On Tue, Jun 1, 2010 at 10:31, murugadoss murugadoss2...@gmail.com wrote: I need to pack and send a binary file over socket. The binary file is already existing. Define a protocol, using http://code.google.com/p/protobuf/ That's one way. Roshan Mathews

[BangPypers] Pygments help

2010-06-01 Thread Srinivas Reddy Thatiparthy
I am playing around with Pygments 1.3.1 source .I have a couple of questions. 1.Pygments docs says use python 2.4 or above.(from Pygments-1.3.1/docs/build/installation.html) ;there are lots of print statements in source but in 3.0 it has a become a function,so how does it work in 3.0 ? 2.I have

Re: [BangPypers] Pygments help

2010-06-01 Thread Noufal Ibrahim
On Tue, Jun 1, 2010 at 12:40 PM, Srinivas Reddy Thatiparthy srinivas_thatipar...@akebonosoft.com wrote: I am playing around with Pygments 1.3.1 source .I have a couple of questions. 1.Pygments docs says use python 2.4 or above.(from Pygments-1.3.1/docs/build/installation.html) ;there are lots

Re: [BangPypers] Pygments help

2010-06-01 Thread Arvind Jamuna Dixit
On Tue, Jun 1, 2010 at 12:40 PM, Srinivas Reddy Thatiparthy srinivas_thatipar...@akebonosoft.com wrote: I have installed it from source (well,i have windows xp) by running python setup.py install and when i looked for docs to invoke on a file say Test.cs there is a pygmentize file to invoke

[BangPypers] binary file unpacking

2010-06-01 Thread murugadoss
Hi, I am trying to unpack a binary file, rfile = open(filename,'rb') print file Size, os.path.getsize(filename) text = rfile.read() print Text, text while(text != 'EOF'): text = struct.unpack(!c,text) Message = Message +

Re: [BangPypers] binary file unpacking

2010-06-01 Thread Noufal Ibrahim
On Tue, Jun 1, 2010 at 12:57 PM, murugadoss murugadoss2...@gmail.com wrote: [..] Can anyone please tell me, the way to unpack the binay data from the file. It would depend on what is in the file. You need to know exactly what's in there and how it's packed to 'unpack' it. If a file has, for

Re: [BangPypers] Pygments help

2010-06-01 Thread Srinivas Reddy Thatiparthy
pygmentize is just a normal python script. You should have no problems running it under windows. Well, it's a shell script with no extension , i opened it in an editor ,it contains python code.see the below code. #here goes the path to python interpreter,actually i overriden that data,so

Re: [BangPypers] Pygments help

2010-06-01 Thread Srinivas Reddy Thatiparthy
Oops,my bad! My version of python is 3.0.I didn't notice it and un-installed it and Pygments working nice on 2.6. ThanksRegards, Srinivas Reddy Thatiparthy, Mobile:9393099772, ___ BangPypers mailing list BangPypers@python.org

[BangPypers] What are the best python books , you have read.

2010-06-01 Thread Srinivas Reddy Thatiparthy
What are the best python books you have read? should be at least on par with python cookbook. TIA for suggestions. ThanksRegards, Srinivas Reddy Thatiparthy, Mobile:9393099772, ___ BangPypers mailing list BangPypers@python.org

Re: [BangPypers] What are the best python books , you have read.

2010-06-01 Thread Rahul
Dive into python is a really good book. On Wed, Jun 2, 2010 at 10:59 AM, Srinivas Reddy Thatiparthy srinivas_thatipar...@akebonosoft.com wrote: What are the best python books you have read? should be at least on par with python cookbook. TIA for suggestions. ThanksRegards, Srinivas Reddy